Skip to content

Commit

Permalink
add "lodash" notion into readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abalandin committed Nov 18, 2013
1 parent d2a1f25 commit 021042e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions readme.md
Expand Up @@ -55,16 +55,17 @@ or

Usage :

$ jst [--template format: string|underscore|_|jquery-tmpl|handlebars|hbs|dust|hogan|mustache|mu] [INPUT_DIR] [OUTPUT?]
$ jst [--template format: string|underscore|_|lodash|jquery-tmpl|handlebars|hbs|dust|hogan|mustache|mu] [INPUT_DIR] [OUTPUT?]

--template -t format : string|underscore|_|jquery-tmpl|handlebars|hbs|dust|hogan|mustache|mu
--template -t format : string|underscore|_|lodash|jquery-tmpl|handlebars|hbs|dust|hogan|mustache|mu
--inputdir -i directory containings the templates to compile $PWD
--output -o output where templates will be compiled
--watch -w watch `inputdir` for change false
--namespace -ns object in the browser containing the templates window.JST
--include -I Glob patterns for templates files to include in `inputdir` **/*
--stdout -s Print the result in stdout instead of writing in a file false
--verbose -v Print logs for debug false
--variable -V Set _.tempateSettings.variable value


## Node usage.
Expand All @@ -79,6 +80,7 @@ Universal-JST export a list of engines.
hbs: [Function: build],
'jquery-tmpl': [Function: build],
underscore: [Function: build],
lodash: [Function: build],
dust: [Function: build],
mu: [Function: build],
mustache: [Function: build],
Expand Down Expand Up @@ -179,9 +181,10 @@ Partials are working. Each template is also a partial, i.e. `Handlebars.partials

`--helpers /path/to/a/dir/containing/helpers` look at this example [helper](universal-jst/tree/master/example/handlebars/helpers), [template](universal-jst/tree/master/example/handlebars/templates/helpers.hbs)

### Underscore
### Underscore or Lodash

`--evaluate`, `--interpolate`, `--escape` are accepted. Those strings will be transformed into a new RegExp
`--evaluate`, `--interpolate`, `--escape` are accepted. Those strings will be transformed into a new RegExp.
`--variable` option can be specified to prevent `with` construction usage.


## Contributing
Expand Down

0 comments on commit 021042e

Please sign in to comment.