David Greenspan
c0186ebd8f
first cut of UI.bind
2013-11-05 13:39:01 -08:00
David Greenspan
4086612e31
emboxValue, docs and tests
2013-11-04 20:45:35 -08:00
David Greenspan
016fbf7709
more comments
2013-11-04 15:50:47 -08:00
David Greenspan
a6ca1b3925
RenderBuffer takes components
2013-11-04 15:50:08 -08:00
David Greenspan
6970e75f19
remove old code
2013-11-04 10:37:28 -08:00
David Greenspan
dd4d1c930b
reactive attribute tests and clean-up
...
in particular, fully support nested arrays in attribute values
and null and undefined attribute values (which indicate no attribute)
2013-11-01 19:25:37 -07:00
David Greenspan
09fa915fb0
cleaner reactive attributes; error reporting
2013-11-01 16:41:50 -07:00
David Greenspan
bfc0ce6798
DomBackend removal detection refactor and tests
2013-11-01 15:22:42 -07:00
David Greenspan
1241d2f9c8
checkAttributeName
2013-11-01 13:59:44 -07:00
David Greenspan
91eedfb8ec
prepare for reactive attributes
2013-10-29 20:08:15 -07:00
David Greenspan
de71913aa8
comments and clean-up
2013-10-29 19:31:32 -07:00
David Greenspan
0f7a261da4
reactive closures
...
handle void elements; codegen better object literals
2013-10-29 19:03:48 -07:00
David Greenspan
c2da2dac1d
unit tests and a couple fixes
2013-10-29 18:25:18 -07:00
David Greenspan
b85ae3ccc6
EmitCode
2013-10-28 20:15:03 -07:00
David Greenspan
03312eb0a0
CharRef and Comment; toCode
2013-10-28 19:32:32 -07:00
David Greenspan
066955252f
initial commit
2013-10-28 18:37:55 -07:00
Avital Oliver
849e4e015d
remove stale comment
2013-10-22 23:04:57 -07:00
Avital Oliver
4788427f9d
Fix spacebars-tests
...
The "inclusion args" tests broke with commit
1c37ac1a98 . Within
'lookup' we were wrapping results in functions
even when they were constants. This led
`{{> foo bar}}` to not correctly pass `bar`
as data into the Template pointed to by `foo`.
2013-10-22 22:02:47 -07:00
David Greenspan
e10145d14c
comments
2013-10-10 16:04:17 -07:00
David Greenspan
21180a20e9
only access data if needed in comp.lookup
2013-10-10 15:32:58 -07:00
Avital Oliver
05985f50c1
backcompat for Handlebars.SafeString
2013-10-10 15:20:10 -07:00
David Greenspan
1c37ac1a98
fix over-rendering by isolating comp.lookup
...
comp.lookup was establishing immediate dependencies, which was incorrect
2013-10-10 14:54:12 -07:00
David Greenspan
e350782fce
wrap event handling in Deps.nonreactive
2013-10-09 17:20:18 -07:00
David Greenspan
11aa6c65e2
call template callbacks in Deps.nonreactive
2013-10-08 19:03:09 -07:00
Avital Oliver
8df574c68a
Don't crash on template destroyed callback
2013-10-08 15:02:52 -07:00
David Greenspan
7a112872fd
fix {{> content}} in {{#if} with messy hack
2013-10-07 14:27:20 -07:00
David Greenspan
96af53db96
get rid of component.$
...
We still have domrange.$, a.k.a. component.dom.$
Think about aliasing it as component.$ again in the future, but watch out for helpers called "$" since the current plan puts component methods and helpers in the same namespace.
2013-10-07 11:27:20 -07:00
David Greenspan
f8e3e5a7e2
remove broken tests and dead code
2013-10-07 11:16:58 -07:00
Avital Oliver
d8a70707e6
slightly better error
2013-10-07 11:13:30 -07:00
David Greenspan
3f93c386ce
_.each doesn't work on false all of a sudden
...
(but still works on `null`)
2013-10-07 10:28:23 -07:00
David Greenspan
287f7ab1f3
fix keyword args
2013-10-05 18:01:18 -07:00
David Greenspan
c9bcc67dfb
remove duplicate copy of component.withData
2013-10-05 11:16:17 -07:00
Avital Oliver
2bca593ee3
minor comment change
2013-10-04 22:52:14 -07:00
Avital Oliver
67844275b3
accounts-ui-viewer partially running
...
* introduced `withData` on components to allow
passing data without being exposed to the OO
model
2013-10-04 22:40:34 -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
8736e25a41
add comment
2013-10-04 20:02:06 -07:00
David Greenspan
d31b82e4db
XXX comments explaining next step
2013-10-04 15:40:43 -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
7e5dcedb30
try to fix "template" argument in event handlers
2013-10-03 16:22:38 -07:00
Avital Oliver
3b3a51f6e5
bring back Handlebars._escape
2013-10-03 14:55:59 -07:00
Avital Oliver
072517d788
oops, forgot to commit a file.
2013-10-03 13:56:43 -07:00
Avital Oliver
6ccb6862a9
backcompat for Handlebars.registerHelper
2013-10-03 13:44:46 -07:00
Avital Oliver
44769e6ec0
{{#if}} treats empty arrays as falsey
2013-10-02 15:04:45 -07:00
Avital Oliver
66e56cdd14
fix double calls to bubbling event handlers
2013-10-02 12:31:46 -07:00
David Greenspan
a6b612e33c
don't choke on HTML comments
2013-09-18 20:01:51 -07:00
Avital Oliver
4b30756de9
greenspan code review comments
2013-09-18 19:22:26 -07:00
David Greenspan
bb0332ffac
refactor #each item mutable data pattern
2013-09-18 19:22:13 -07:00
Avital Oliver
3616a96053
remove comment
2013-09-18 19:05:22 -07:00
Avital Oliver
e5b30daf8c
support {{else}} in {{#each}}
2013-09-18 18:15:03 -07:00