Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 23, 2015
  1. @sethkinast

    Merge pull request #637 from sethkinast/cjs-example

    sethkinast authored
    CommonJS example
  2. @sethkinast

    Merge pull request #638 from sethkinast/compiler-backcompat

    sethkinast authored
    Preserve compiler backwards compatibility with pre-2.7 versions
  3. @sethkinast

    Merge pull request #639 from sethkinast/windows-tests

    sethkinast authored
    Fix failing test on Windows
Commits on Apr 18, 2015
  1. @sethkinast

    Update basic streaming example

    sethkinast authored sethkinast committed
    [ci skip]
  2. @sethkinast

    CommonJS example

    sethkinast authored sethkinast committed
  3. @sethkinast

    Fix failing test on Windows

    sethkinast authored
  4. @sethkinast
Commits on Apr 17, 2015
  1. @sethkinast

    Release v2.7.0

    sethkinast authored
  2. @sethkinast

    npm install --production

    sethkinast authored
  3. @prashn64

    Merge pull request #636 from sethkinast/ie8

    prashn64 authored
    Fix failing tests in IE8
  4. @prashn64

    Merge pull request #633 from sethkinast/package.json

    prashn64 authored
    Drop Node 0.8
  5. @sethkinast

    Fix failing tests in IE8

    sethkinast authored sethkinast committed
  6. @prashn64

    Merge pull request #635 from sethkinast/medallia

    prashn64 authored
    Resolve dynamic partial names via original context
  7. @prashn64

    Merge pull request #631 from sethkinast/undefined-head

    prashn64 authored
    Try to avoid creating Stacks with no content when possible
  8. @sethkinast

    Resolve dynamic partial names via original context

    sethkinast authored
    When scoping a partial with a dynamic name to a context like this:
    
        {>"{partial}":context /}
    
    The evaluation of the partial name was done in `context` instead of the current scope.
    
    Fixes #262
    Closes #261
  9. @sethkinast
  10. @prashn64

    Merge pull request #613 from sethkinast/templates++

    prashn64 authored
    Refactor template compilation
    
    * `dust.render` and `dust.stream` now accept a compiled template function in addition to a template name.
    * `dust.compile` no longer requires a template name, and will compile an anonymous template without one (so `--name` is no longer required for dustc either)
    * `dust.load` is removed from the public API
    * `dust.renderSource` is moved to the compiler, so it's only included in dust-full now (Fixes #412)
    * `dust.compileFn` is moved to the compiler, so it's only included in dust-full now
    * add `dust.isTemplateFn`
    * add `dust.config.cache = true`, set to `false` to disable caching and load templates again every time (Fixes #451)
    * add `dust.config.cjs = false`, set to `true` to compile templates as CommonJS modules
    * add `--cjs` flag to `dustc`
    * Move a bunch of exposed compiler stuff under `dust.compiler` (but leave it exposed until 2.8)
Commits on Apr 15, 2015
  1. @sethkinast

    Drop Node 0.8

    sethkinast authored
  2. @sethkinast

    Improve CommonJS modules

    sethkinast authored
    Compiling a template as a CommonJS module returns a function that must be hydrated with a Dust:
    
        var tmpl = require('./my/tmpl.js')(dust);
    
    Once you have a handle on that object, you can either invoke it directly:
    
        tmpl(context, function(err, out) { ... })
        tmpl(context).on('data', ...)
    
    Or you can pass it to `dust.render`:
    
        dust.render(tmpl, ...)
    
    Or you can access the compiled template if you need to do something with it:
    
        tmpl.template; // function body_0(chunk, context, bodies, params) { ... }
  3. @sethkinast

    Improved `dust.compileFn`

    sethkinast authored
Commits on Apr 14, 2015
  1. @sethkinast

    Streamline compiler

    sethkinast authored
  2. @sethkinast

    CommonJS support

    sethkinast authored
  3. @sethkinast
  4. @sethkinast

    dust.config.cache

    sethkinast authored
    Set to false to disable caching. Templates will always be loaded again using `dust.onLoad`.
  5. @sethkinast

    dust.isTemplateFn

    sethkinast authored
  6. @sethkinast

    Template compilation and loading improvements

    sethkinast authored
    * Remove dust.load from public API and dust.compileFn completely.
    * When a template is compiled, dust.compile returns a reference to the compiled template that can be passed to dust.render / dust.stream directly
    * Compiled template references have a `templateName` property if they were compiled with a name
  7. @sethkinast
  8. @prashn64

    Merge pull request #624 from sethkinast/dustc-windows

    prashn64 authored
    dustc always creates templates with forward slashes
  9. @prashn64

    Merge pull request #617 from sethkinast/chunk.stream

    prashn64 authored
    Add `chunk.stream` to allow streamables in context
  10. @prashn64

    Merge pull request #610 from sethkinast/peg

    prashn64 authored
    clean up PEG grammar a little bit
  11. @prashn64

    Merge pull request #622 from sethkinast/context-resolve-chunk

    prashn64 authored
    Fix behavior of `Context#resolve` when resolving a context function that returns a Chunk
  12. @sethkinast
  13. @sethkinast

    Improve jshinting

    sethkinast authored
Commits on Apr 11, 2015
  1. @sethkinast

    Merge pull request #611 from sethkinast/github-changes

    sethkinast authored
    Add grunt-github-changes plugin to automatically update changelog before releases
  2. @sethkinast

    Merge pull request #627 from sethkinast/travis-container

    sethkinast authored
    Move to Travis CI Container builds
Something went wrong with that request. Please try again.