Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from olado/doT

The fastest + concise javascript template engine for nodejs and browsers. Partials, custom delimiters and more.

License

davemerrill/doT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This fork:
1. Supports passing a subset of compile options to doT.template().
   Don't have to pass them all to change one; options not passed default to values in doT.templateSettings.
2. Adds an alias for 'argnames' as a compile option, mapping it to varname.
   That name seems more appropriate to me, since it defines the arguments (plural) passed into the compiled function.
   Preserves backwards compatibility, by honoring either the original 'varname', or the new 'argnames' option.
---------------
Created in search of the fastest and concise JavaScript templating function with emphasis on performance under V8 and nodejs. It shows great performance for both nodejs and browsers.

doT.js is fast, small and has no dependencies.

Features:
    custom delimiters
    runtime evaluation
    runtime interpolation
    compile-time evaluation
    partials support
    conditionals support
    array iterators
    encoding
    control whitespace - strip or preserve
    streaming friendly
    use it as logic-less or with logic, it is up to you

Docs, live playground and samples:
    http://olado.github.com/doT

Note about doU.js:
    doU.js is here only so that legacy external tests do not break. Use doT.js.
    doT.js with doT.templateSettings.append=false provides the same performance as doU.js.

License:
    doT is an open source component of http://bebedo.com
    doT is licensed under the MIT License. (See LICENSE-DOT)

About

The fastest + concise javascript template engine for nodejs and browsers. Partials, custom delimiters and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%