index.js
function Template (filename, context) {
    // Save the context for reuse in sub-templates
    this.context = context || {}
    this.context.include = this.render.bind(this)
    this.context.forEach = forEach

    // Save the filename for the initial render
    this.filename = filename

    // Create a cache so we only read files once
    this.cache = {}
}
function Template (filename, context) {
    // Save the context for reuse in sub-templates
    this.context = context || {}
    this.context.include = this.render.bind(this)
    this.context.forEach = forEach

    // Save the filename for the initial render
    this.filename = filename

    // Create a cache so we only read files once
    this.cache = {}
}
function Template ( filename , context ) { // Save the context for reuse in sub-templates this . context = context || { } this . context . include = this . render . bind ( this ) this . context . forEach = forEach // Save the filename for the initial render this . filename = filename // Create a cache so we only read files once this . cache = { } }
Template class for reusable contexts and cached files.
Template class for reusable contexts and cached files .