Emily Stark
a6f01b6c92
Fix #770 .
...
Add optional else case to {{#with}}.
2013-03-22 15:09:35 -07:00
Avital Oliver
5a0a4f5ab0
npm dependencies at bundle time
...
- package.js now has a top-level 'Npm.depends' directive
- both bundle-time and server run-time code can get access
to any dependent npm module with 'Npm.require'
2013-03-19 15:11:04 -07:00
Avital Oliver
78ca755d3d
Npm.require unified requireNpm and __meteor_bootstrap__.require
2013-03-19 15:11:04 -07:00
Avital Oliver
58c6f55676
Apply changes made on engine repo
2013-03-19 15:11:01 -07:00
Morten Henriksen
4bf1b76a71
Fixed #801
2013-03-14 11:50:36 +01:00
David Greenspan
a102deee80
fix logic bug in template branch matching
2013-02-22 13:26:09 -08:00
Nick Martin
38c5795c71
Review from Geoff
2013-02-06 19:39:31 -08:00
Nick Martin
68049c276d
Move tests from handlebars to templating, as they depend on templates. Also, extend to test a few more types.
2013-02-06 19:39:31 -08:00
Nick Martin
719f2e10dc
Use regexp instead of isNaN for detecting integers.
2013-02-06 19:39:31 -08:00
Morten Henriksen
7ca41e4a3c
Added fix, workaround handlebars issue and added tests
2013-02-06 19:39:31 -08:00
Avital Oliver
ead2a14945
Change error message: No such partial -> No such template
2012-11-09 11:17:59 -08:00
Tom Wijsman
8f83b2c32e
Made sure all file system related statements use proper path.join and path.sep to support other platforms.
2012-10-30 15:53:49 -07:00
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 <" 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