quangv / hulk-hogan

Hogan.js for Express with support for Template Partials.
MIT License
37 stars 2 forks source link

Default Express Options included in Hogan.js Context #1

Open quangv opened 12 years ago

quangv commented 12 years ago

Express includes these default options, that currently passes to Hogan compile context.

{   layout : false, 
    attempts : [/home/quang/ssh/repos/hulk-hogan/express_engine.hulk
    ], 
    scope : {Object}, 
    parentView : undefined, 
    root : /home/quang/ssh/repos/hulk-hogan, 
    defaultEngine : undefined, 
    settings : {Object}, 
    app : {Object}, 
    partial : <Function>, 
    hint : true, 
    filename : /home/quang/ssh/repos/hulk-hogan/express_engine.hulk, 
}

Might removed these when passed to Context... or not.

quangv commented 12 years ago

root & defaultEngine is used in hulk-hogan to include partials.

{{> header}}  # [root]/header.[defaultEngine]