This adds flexibility allowing us to use a base layout with a name different from __layout, which is currently hardcoded into viewEngine.
Using a custom template name will be as simple as doing this during the Rendr server creation:
var server = rendr.createServer({
baseLayoutName: 'myTemplate'
});
Rendr-handlebars is already flexible enough to allow this.
Coverage increased (+0.04%) to 82.8% when pulling 701497fa747d31bb818c8ccd12ab1e76a7a65e62 on ingiulio:allowCustomBaseLayoutName into 5532a66de86bd64c20944276eccb5c87a59f902c on rendrjs:master.
Coverage increased (+0.04%) to 82.8% when pulling 701497fa747d31bb818c8ccd12ab1e76a7a65e62 on ingiulio:allowCustomBaseLayoutName into 5532a66de86bd64c20944276eccb5c87a59f902c on rendrjs:master.
This adds flexibility allowing us to use a base layout with a name different from
__layout
, which is currently hardcoded intoviewEngine
. Using a custom template name will be as simple as doing this during the Rendr server creation:Rendr-handlebars is already flexible enough to allow this.