Comparing version 0.1.0 to 0.1.1
# History | ||
## 0.1.1 / 2012-07-09 | ||
- [bug fix] Use `process.cwd()` instead of `__dirname` for current dir | ||
## 0.1.0 / 2012-07-08 | ||
@@ -4,0 +10,0 @@ |
@@ -20,6 +20,6 @@ /*! | ||
var commands = [ | ||
[ '-v', '--version', 'Display coke version' ], | ||
[ '-v', '--version', 'Display thunder version' ], | ||
[ 'h', 'help', 'Display usage information' ], | ||
[ 'b', 'build [args]', 'Precompile templates' ], | ||
[ 'w', 'watch [args]', 'Run coke server' ] | ||
[ 'w', 'watch [args]', 'Watch for changes' ] | ||
]; | ||
@@ -26,0 +26,0 @@ |
@@ -143,3 +143,3 @@ /*! | ||
layout : function ( use_requirejs ){ | ||
return use_requirejs == 'false' ? '\ | ||
return use_requirejs == 'false' ? '\ | ||
;( function (){\n\ | ||
@@ -146,0 +146,0 @@ var __tpl_name__ = "__content__";\n\ |
{ | ||
"name" : "thunder", | ||
"version" : "0.1.0", | ||
"version" : "0.1.1", | ||
"description": "One of the fastest JavaScript template engine for Node.js and browsers.", | ||
@@ -5,0 +5,0 @@ "bin" : { |
@@ -56,3 +56,3 @@ # thunder | ||
### In the browser | ||
### On browsers | ||
@@ -69,6 +69,6 @@ > Install `thunder` in global to use the command line tools. You will need them to compile the HTML templates to JavaScript strings. By default `thunder` looks for all the `.html` files in the dir `templates` in the same dir where the command is called, compile them to JavaScript strings and save them to `views` dir. You can specify the `input` and `output` dir to wherever you want by passing the `-i` and `-o` arguments. Also the default compiled strings are `requirejs` modules. By passing `-r=false` it will use the file name as the template name and attach it to `window` object. | ||
Commands: | ||
-v, --version Display coke version | ||
-v, --version Display thunder version | ||
h, help Display usage information | ||
b, build [args] Precompile templates | ||
w, watch [args] Run coke server | ||
w, watch [args] Watch for changes | ||
@@ -128,3 +128,3 @@ Arguments for `build` & `watch commands` | ||
### In the browser | ||
### On browsers | ||
@@ -163,3 +163,3 @@ - Normal useage | ||
var thunder = require( 'thunder' ); | ||
var input = require( 'views/index' ), | ||
var input = require( 'views/index' ); | ||
var locals = { name : 'Bibi' }; | ||
@@ -166,0 +166,0 @@ var options = { cached : true }; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23918
2