Avital Oliver
df5dc5c5be
Fix {{> foo bar=false}}.
...
Apparently `Boolean("false")` is true.
2013-10-22 22:11:33 -07:00
Avital Oliver
05985f50c1
backcompat for Handlebars.SafeString
2013-10-10 15:20:10 -07:00
David Greenspan
d1e6bd1a4f
spacebars: prettier code gen pretty-printing
2013-10-08 19:02:42 -07:00
David Greenspan
b88e40b0b7
hack for lexical scope of {{> content}}
2013-10-07 15:37:56 -07:00
David Greenspan
7a112872fd
fix {{> content}} in {{#if} with messy hack
2013-10-07 14:27:20 -07:00
David Greenspan
84873c8a22
fix argument binding with dots in Spacebars.index
2013-10-07 10:45:13 -07:00
David Greenspan
7cebd55c7f
Fix dots in mustaches by rewriting Spacebars.index
...
Also comment out failing old tests in "spacebars" package
2013-10-05 16:57:15 -07:00
Avital Oliver
599778a791
block helper calling syntax
...
notably, only applies when the block helper is a component
rather than a function. so this works for built-in block helpers
such as {{#if}}.
2013-10-04 22:21:58 -07:00
David Greenspan
71feaaaf8b
Spacebars.index comment
2013-10-04 20:41:58 -07:00
David Greenspan
1d721aba43
more comments
2013-10-04 20:09:04 -07:00
David Greenspan
25764255ff
fix component invocations, make dynamic (wip)
...
TODO next:
- fix keyword args when foo's a function
- pass them to function not template
- evaluate them
- back-compat block helper calling convention
2013-10-04 15:29:37 -07:00
David Greenspan
932075eacb
fix helpers, dynamic attributes; tests
2013-10-04 12:36:52 -07:00
David Greenspan
d978f6639b
remove whitespace
2013-10-03 16:22:38 -07:00
David Greenspan
1cbd3861fa
start breaking spacebars tests
2013-10-03 10:16:06 -07:00
David Greenspan
165594c239
start fixing Spacebars tests
2013-10-03 10:16:06 -07:00
Avital Oliver
8633f030e7
enable dynamic templates
...
specifically, make {{> foo}} where foo is a helper returning
a template object render that template.
2013-10-02 22:13:06 -07:00
Avital Oliver
13d1cde4ca
Error message displays tag name
2013-10-01 11:15:10 -07:00
David Greenspan
82951a2038
throw an error in {{#if foo_is bar}}
...
(until we implement it.)
2013-09-19 16:03:39 -07:00
David Greenspan
443c9de2fd
comment
2013-09-19 15:55:32 -07:00
Avital Oliver
b0a9278566
fix template compiler dealing with html comments
2013-09-18 19:46:16 -07:00
David Greenspan
e60da7acc1
allow string in <div {{{attrs}}}>
2013-09-18 15:49:03 -07:00
David Greenspan
08822cb2d6
towards working DomRange rendering
...
next stages:
- spacebars calls make something happen
- appropriate reactivity
then:
- can we get the test driver?
- DomRange improvements (tests?)
- proper lifecycle / stop autoruns
2013-08-25 20:26:31 -07:00
David Glasser
75a4cf3199
Merge branch 'devel' into shark
...
Conflicts:
packages/templating/deftemplate.js
packages/templating/package.js
packages/templating/plugin/html_scanner.js
packages/test-in-browser/driver.js
tools/packages.js
2013-08-01 17:17:18 -07:00
David Greenspan
9bec3bfac9
checkbox component, touch-ups
2013-07-25 10:10:41 -07:00
David Greenspan
5467c1a63b
fixed {{> content}} and fields
2013-07-25 08:23:53 -07:00
David Greenspan
265e58495e
className diffing; fix reactive {{{attrs}}}
2013-07-25 07:38:47 -07:00
David Greenspan
c91307e32e
try to get apps working (crashes Chrome)
2013-07-25 04:07:55 -07:00
David Greenspan
df3939bf2d
mv ui2 ui; port spacebars (untested)
2013-07-25 01:32:18 -07:00
David Greenspan
8018394b8b
fixes; merge strings in Spacebars compilation
2013-07-16 17:59:49 -07:00
David Greenspan
332e1417f3
spacebars runs
2013-07-16 17:49:57 -07:00
David Greenspan
14f6574135
spacebars almost runnable
2013-07-16 17:31:09 -07:00
David Greenspan
a116be3f83
spacebars WIP
2013-07-16 10:22:36 -07:00
David Greenspan
ccde6a051f
prepare to port Spacebars to new render API
...
- remove code for @annotations
- rewrite component.lookup
- take old API out of package.js, move to "old" dir
totally breaks everything including "shark" demo
2013-07-14 11:11:24 -07:00
David Greenspan
01bf367b65
minor wording tweaks
2013-07-13 17:39:50 -07:00
David Greenspan
f658983622
start of Spacebars docs
2013-07-13 17:35:27 -07:00
David Greenspan
c50134beaf
spacebars: fewer special identifiers mid-path
2013-07-13 17:34:35 -07:00
David Greenspan
55e9e7e441
@emit element annotations cause event dispatch
2013-07-01 17:53:24 -07:00
David Greenspan
42bc63dc91
get rid of EmptyComponent
...
not really empty since now Component renders its content
by default
2013-07-01 15:33:46 -07:00
David Greenspan
f1853086ed
recognize annotations in Spacebars compiler
2013-06-27 15:23:46 -07:00
David Greenspan
c6a5c89a74
spacebars: further unify error reporting
2013-06-27 14:37:11 -07:00
David Greenspan
8aed126bad
{{@ annotations}}, better error messages
2013-06-27 10:44:55 -07:00
David Greenspan
b3b2c26936
body/else become content/elseContent
2013-06-25 13:41:29 -07:00
David Greenspan
6551e3a366
search Template.foo namespace for components
...
fix inheritance superClass tracking
2013-06-25 05:08:14 -07:00
David Greenspan
06fad56c5a
expand comp.lookup behavior
...
also bodyClass,elseClass become body,else
2013-06-18 09:40:22 -07:00
David Greenspan
db36afc1a4
fix typos; If/Each; make shark example work
2013-06-17 14:49:51 -07:00
David Greenspan
e0816b5f34
handle falsy helper result
2013-06-17 14:01:53 -07:00
David Greenspan
8d92d53bf8
complete Spacebars code gen
2013-06-17 14:01:53 -07:00
David Greenspan
efa83a5167
component inclusion code gen
2013-06-17 14:01:53 -07:00
David Greenspan
630b3b8213
kill old code
2013-06-17 14:01:53 -07:00
David Greenspan
23ff6fbe06
reactive double/triple stache code gen
2013-06-17 14:01:53 -07:00