lib/client/template_engine.js
function suggestedId(pth, templatesPath) {
    if (pth.indexOf(templatesPath) === 0) {
      pth = pth.substring(templatesPath.length + 1);
    }
    var sp;
    sp = pth.split('.');
    if (pth.indexOf('.') > 0) {
      sp.pop();
    }
    return sp.join('.').replace(/\//g, '-');
  }
function suggestedId(pth, templatesPath) {
    if (pth.indexOf(templatesPath) === 0) {
      pth = pth.substring(templatesPath.length + 1);
    }
    var sp;
    sp = pth.split('.');
    if (pth.indexOf('.') > 0) {
      sp.pop();
    }
    return sp.join('.').replace(/\//g, '-');
  }
function suggestedId ( pth , templatesPath ) { if ( pth . indexOf ( templatesPath ) === 0 ) { pth = pth . substring ( templatesPath . length + 1 ) ; } var sp ; sp = pth . split ( '.' ) ; if ( pth . indexOf ( '.' ) > 0 ) { sp . pop ( ) ; } return sp . join ( '.' ) . replace ( / \/ / g , '-' ) ; }
This should be on the bundler entries, so it can be tweaked by bundler before being used by the engine Suggest an ID for this template based upon its path 3rd party Template Engine modules are free to use their own naming conventions but we recommend using this where possible
This should be on the bundler entries so it can be tweaked by bundler before being used by the engine Suggest an ID for this template based upon its path 3rd party Template Engine modules are free to use their own naming conventions but we recommend using this where possible