Skip to content

Template path in key is not normalzed on windows machine #9

@junakowicz

Description

@junakowicz

Generated template naming (slashes) is inconsistent across mac and win platforms.
on windows:
TEMPLATES['res\templates\debug.tmpl'] = "<div class="panel">

......"
on mac:
TEMPLATES['res/templates/debug.tmpl'] = "<div class="panel">......"

The simplest solution would be in complile.js use unused normalizePath function
ex.
var templateName = path.relative(options.base, filepath) templateName=normalizePath(templateName);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions