Code Monkey home page Code Monkey logo

node-samson's People

Contributors

bitdeli-chef avatar blakmatrix avatar drkibitz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-samson's Issues

Suggestions

Glad to see a command line compiler built with doT! :)

Some suggestions:

  1. in Template.js instead of mixing def and vars into one object to avoid unplanned collisions I think it would be better to just set varname as "it, defs" vs just "it" and then pass defs as a second parameter into the generated function.
  2. Have "includes" files that are put into defs as properties and can be referred from other templates. We do this in bebedo. We didn't need a generic solution and just have includes folder that is put into global defs and then can be used from other templates with {{#defs.header}} for example (instead of linking by file name and loading the file every time)
  3. Btw, not sure if you use this, but partials can be augmented by the templates that include it by defining a def that is used inside of a partial (example: https://github.com/olado/doT/blob/master/examples/browsersample.html)
  4. I think shorter delimiter vs {build{ would help adoption.

Cool stuff.

Better tests

My tests are pretty much required to be run on my system because the file length check is based on the output of the FILE constant on my system.

I still want a way to test the FILE constant, but a file length check should not include the usage of this constant, or any other constants that would output file system paths. Those should just be in a separate test.

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.