34 Commits

Author SHA1 Message Date
David Greenspan
4e15995e4f Fix for Handlebars helper functions returning null
Now you can do {{foo.bar}} if foo() returns null,
and get nothing (silent failure) just like you do
if foo is a non-existent property or function.
2012-09-27 14:31:21 -07:00
Avital Oliver
c3bb216466 Make Handlebars.Exception properly report error text and stack trace 2012-09-07 10:55:17 -07:00
David Greenspan
c149a10735 Spark.UNIQUE_LABEL, no matching in bare each 2012-08-22 16:21:52 -07:00
David Greenspan
b379b03f70 all Handlebars helpers drop branch labels 2012-08-22 15:44:51 -07:00
David Greenspan
e3c3fc6674 minor comment tweak 2012-08-22 11:19:27 -07:00
David Greenspan
2ddf2b1f83 preserve/events/helpers tests (and fixes) 2012-08-13 10:45:04 -07:00
David Greenspan
a44b9205a0 fix Handlebars branch labels 2012-08-08 17:12:34 -07:00
Geoff Schmidt
f766cf29fc First pass of template-level API extensions
Untested, but a demo is in the works
2012-08-08 17:05:56 -07:00
Geoff Schmidt
4e43f59c74 make labelBranch take a function, not a string 2012-08-04 23:21:40 -07:00
Geoff Schmidt
c6ec5b1673 leaderboard and todos run on spark!! rough cut. 2012-08-03 12:53:03 -07:00
David Greenspan
7ad1f5eff3 tests exploring branch keys; ReactiveVar helper; start of 'constant' helper 2012-07-18 10:16:09 -07:00
David Greenspan
9a5bde6e0e branch labeling on partial invocation and #each (completely untested) 2012-07-17 13:46:29 -07:00
David Greenspan
cd3ca61ec3 ignore extra block helper args as intended 2012-07-11 20:50:36 -07:00
David Greenspan
9d3161f3fb Handlebars: allow getters/helpers in args, fix hashes 2012-07-11 14:41:12 -07:00
David Greenspan
2e2ea18522 handlebars: set this appropriately when calling methods 2012-06-18 18:34:01 -07:00
David Greenspan
ce6c48144b handlebars: don't consider helpers in {{this.foo}} 2012-06-18 14:30:11 -07:00
David Greenspan
021cca9ca3 Handlebars: allow dots on helpers, methods, and undefineds 2012-06-16 14:46:45 -07:00
David Greenspan
5b0346b34c Remove Handlebars._escape & heuristic.
It made strings like "Escape < as &lt;" unrenderable.
2012-06-04 21:22:50 -07:00
David Greenspan
0dec81f85b support Handlebars.SafeString (#160) 2012-06-04 21:22:04 -07:00
David Greenspan
9ce0a6d572 scanner unit tests 2012-05-25 16:08:41 -07:00
David Greenspan
aebb9a21aa better errors for unknown helper or reserved name; fixes #151 2012-05-23 12:59:47 -07:00
David Greenspan
0172f9870a use chunks for block-helper event_data; unit tests; fix event-less chunks 2012-05-16 12:37:53 -07:00
David Greenspan
a09c946ea2 use Handlebars context of event target as event_data(!!) 2012-05-11 12:37:10 -07:00
Nick Martin
cd6cbb2397 Reference a different copy of underscore, for consistency. 2012-04-23 21:45:02 -07:00
Nick Martin
27a15af421 Semicolon fixes. 2012-03-28 18:26:15 -07:00
David Greenspan
587913154c fixed test driver to not flush display; some optimizations 2012-02-13 20:08:07 -08:00
Geoff Schmidt
d1d5604976 Refactor bundler; new package API 2012-01-27 20:02:26 -08:00
Geoff Schmidt
e5eb42e55c Refactor package API/bundler 2012-01-27 20:02:24 -08:00
David Greenspan
ef1233d4fb minor typo-level fixes 2012-01-11 15:06:26 -08:00
Geoff Schmidt
74c42ccf4e make handlebars more robust to null/undefined 2011-12-19 16:38:21 -08:00
Geoff Schmidt
24692a60f5 rationalize underscore usage slightly 2011-12-08 16:28:47 -08:00
Geoff Schmidt
1f18d2802b comment 2011-11-26 00:41:40 -08:00
Geoff Schmidt
c814e34df8 make {{> foo bar}} shorthand actually work
(previously, you would get an error about a circular reference while
serializing JSON)
2011-11-25 23:59:57 -08:00
Nick Martin
d69c2d1f19 Initial import from old busted repo. 2011-11-17 18:35:20 -08:00