GithubHelp home page GithubHelp logo

dot-emc's People

Contributors

nerdo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dot-emc's Issues

Express errors for rendering

Hi,

I'm using your module which is great but causes the following error on rendering.

Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:673:11)
    at ServerResponse.res.setHeader (app/node_modules/express/node_modules/connect/lib/patch.js:59:22)
    at ServerResponse.res.set.res.header (app/node_modules/express/lib/response.js:518:10)
    at ServerResponse.res.send (app/node_modules/express/lib/response.js:124:10)
    at res.render.fn (app/node_modules/express/lib/response.js:749:10)
    at View.renderFile [as engine] (app/node_modules/dot-emc/dot-emc.js:161:16)
    at View.render (app/node_modules/express/lib/view.js:75:8)
    at Function.app.render (app/node_modules/express/lib/application.js:504:10)
    at ServerResponse.res.render (app/node_modules/express/lib/response.js:753:7)

Template settings other than 'cache' in init get overridden by doT.templateSettings

Hi, I'd like to be able to override the other dot template settings (e.g. 'strip') like this:

dotemc.init({
    app: app,
    options: {
        templateSettings: {
            strip: false,
        }
    }});

However mergeObjects() overrides default.options with existing properties in doT.TemplateSettings

I can't seem to get require("dot").templateSettings.cache = false; to work either.

Thanks

send partial it data

I'm trying to use a partial in another file that uses information from it.

{{#def.include("table.def", it.data)}}

Express complains "ReferenceError: it is not defined". I know it is there because I can console.log(it) and get the contents. Is passing variables not working?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.