Yehuda Katz
02d35262f9
Fill in missing specs
2012-12-23 21:27:44 -08:00
Yehuda Katz
8df8488947
Merge pull request #347 from spikebrehm/master
...
Makes Handlebars.log available in both builds and fleshes out `log` helper.
2012-12-23 21:06:57 -08:00
Yehuda Katz
17ee7ffaca
Merge pull request #388 from dmarcotte/empty-inverse-blocks
...
Allow empty blocks around simple inverses
2012-12-23 20:31:46 -08:00
Yehuda Katz
bf4c813db0
Merge pull request #389 from leshill/partial_names
...
Partials can be paths
2012-12-23 20:29:36 -08:00
Yehuda Katz
070e12f76f
Merge pull request #390 from eastridge/master
...
Make {data: true} a default compile option
2012-12-23 20:21:36 -08:00
Yehuda Katz
9385666e08
Get a better error for compile(falsy)
2012-12-23 20:15:18 -08:00
kpdecker
dfaf698b44
Merge remote-tracking branch 'upstream/master'
2012-12-19 21:06:59 -06:00
Ryan Eastridge
12f160fb31
Add data = true as default option
2012-12-13 11:42:18 -08:00
Les Hill
b58c2dd0ad
Test for #84
2012-12-13 11:15:38 -08:00
Les Hill
4bb794d814
Partials can be paths
...
Allows partials with slashes, a common partial syntax. For example:
{{> shared/dude}}
2012-12-13 11:15:38 -08:00
Ryan Eastridge
7ce13a3c2c
Add failing unit test for private variables
2012-12-12 18:10:18 -08:00
Kevin Decker
19bfbe07f8
Merge pull request #374 from bkaull/master
...
Adding precompilation of partials
2012-12-11 10:56:56 -08:00
Brian Kaull
fd0560b951
Update bin/handlebars
2012-12-11 10:41:50 -08:00
Daniel Marcotte
4cfda479fa
Allow empty blocks around simple inverses
...
Previously, the parser required at least one character of whitespace
to properly interpret empty blocks around simple inverses, which was
non-intuitive and inconsistent with empty block parsing.
Update the parser to allow empty blocks around simple inverses.
2012-12-11 09:47:49 -08:00
kpdecker
eabcc8a002
Merge branch 'master' of https://github.com/wycats/handlebars.js
...
Conflicts:
package.json
2012-12-02 13:40:37 -08:00
Brian Kaull
cbfe84f1a9
Adding partial precompilation
...
Also allowing to compile based on data getting passed in
2012-11-26 11:51:53 -08:00
Tommy Messbauer
db975b42a0
Merged upstream master and ran unit tests
2012-11-26 10:26:15 -06:00
Tommy Messbauer
7963218495
Factory update with tabs to spaces.. sorry :(
2012-11-26 09:39:08 -06:00
Kevin Decker
bd04901454
Merge pull request #371 from cpojer/commonjs-export-option
...
Add CommonJS export option for template compilation.
2012-11-25 09:56:39 -08:00
cpojer
c3f92c402e
Add CommonJS export option for template compilation.
2012-11-22 12:28:44 +01:00
Matteo Agosti
53d6b4ca04
Supporting custom template extension
...
Fix missing escape
2012-11-08 12:22:35 +01:00
Peter Wagenet
39832c0633
Fix handling of Errors in Chrome
2012-11-02 10:39:49 -07:00
Spike Brehm
2676efb222
overzealous approach to implmenting Handlebars.logger.log and 'log' helper.
2012-10-20 15:26:57 -07:00
Yehuda Katz
a927a9b0ad
Add block comment syntax:
...
{{!-- can contain
{{handlebars expressions}} --}}
2012-10-15 13:51:53 -04:00
Yehuda Katz
8ed7a1e4e6
Merge pull request #339 from mikesherov/each
...
{{#each}} now supports objects [rebased against master]
2012-10-15 07:49:31 -07:00
Mike Petrovich
d89e4b3d33
Added unit tests for #each with objects
2012-10-15 10:27:58 -04:00
Ross Hadden
9589ab8949
Implemented ability to iterate over objects, ala for-in.
...
Also added the 'key' key to looped objects.
My goal is to make this {{@key}}, but am still working on it.
I would also like to unobtrusively make @key or @index work for arrays.
2012-10-15 10:27:56 -04:00
Yehuda Katz
3212325173
Merge pull request #290 from fancyoung/master
...
Fix demo bug in README
2012-10-12 23:40:51 -07:00
Yehuda Katz
850304f43b
Merge pull request #295 from leshill/escaped_quotes
...
Escaped quotes in hash arguments
2012-10-12 23:38:18 -07:00
Yehuda Katz
ed245c6c64
Merge pull request #334 from anton-rudeshko/master
...
Added AMD option doc to README
2012-10-10 07:22:17 -07:00
Yehuda Katz
1018d9bfd1
Merge pull request #319 from stvp/master
...
Bind functions to the context.
2012-10-10 01:05:03 -07:00
Yehuda Katz
a1bfc80577
Merge pull request #322 from scribu/patch-1
...
fix Block Helpers example
2012-10-10 01:04:30 -07:00
Anton Rudeshko
1b197be7fc
Added AMD option doc
2012-10-07 06:20:06 -07:00
Cristi Burcă
9e582fa0eb
fix Block Helpers example
2012-09-28 03:35:36 +03:00
Les Hill
a1c9acb8b1
Escaped single quotes in hash arguments
2012-09-22 08:09:33 -07:00
Tyson Tate
42120d1177
Bind functions to the context properly.
...
The regression was introduced in 1.0.rc.1.
This fixes issue #317 .
2012-09-19 16:03:46 -07:00
kpdecker
b5074a88ec
Rev node version to 1.0.7
...
Per discussion with @wycats. Due to the version history of the node package and the manner in which npm's semver implementation works we need to continue the patch numbers utilized previously.
Once the upstream implementation moves to 1.1 versioning we can sync the implementations again.
v1.0.7
2012-09-17 19:27:23 -05:00
Peter Wagenet
ce74c36118
Bumped package.json version
1.0.rc.1
2012-09-15 21:11:36 -07:00
Yehuda Katz
26b1438f20
Merge pull request #198 from codekitchen/master
...
properly handle ampersands when HTML escaping
2012-09-14 20:48:40 -07:00
Yehuda Katz
b83e5e0ea6
Merge pull request #297 from karlwestin/fix-reverse-array
...
Fixed an issue where {{#array}} {{/array}} wouldn't pass in an @index data variable
2012-09-14 20:26:11 -07:00
Yehuda Katz
f6aea819f3
Merge pull request #310 from redpie/fix-registerPartial-data
...
Ensure plain text partials supplied to registerPartials are compiled using data: true if necessary.
2012-09-14 20:25:10 -07:00
Yehuda Katz
647ee28ca1
Merge pull request #313 from redpie/rake-spec-exitcode
...
Ensure `rake spec` exits with a meaningful exit code
2012-09-14 20:24:29 -07:00
Kiall Mac Innes
d117b50fd3
Ensure rake spec exits with a meaningful exit code
2012-09-14 15:27:13 +01:00
kpdecker
ed8c2b95b8
Update npm repo to root repo
2012-09-13 17:54:07 -05:00
kpdecker
aba2269ddb
Add nested hyphen test cases
2012-09-13 17:51:12 -05:00
Kiall Mac Innes
967c69b2da
Ensure plain text partials supplied to registerPartials are compiled using data: true if necessary.
2012-09-13 15:04:34 +01:00
tomhuda
5a6e4f1ddd
Fix repeated delimiter escaping
2012-09-12 20:44:48 -07:00
Yehuda Katz
f55ca6c489
Merge pull request #309 from redpie/use-local-jison
...
Update Rakefile to use jison from node
2012-09-12 20:05:21 -07:00
Kiall Mac Innes
4b73b51e12
Update Rakefile to use a locally installed version of jison
...
The means root access is no longer required to build.
2012-09-12 11:15:31 +01:00
Tommy Messbauer
eccc7c35ca
Finished factory pattern
2012-08-29 15:07:15 -05:00