David Greenspan
218caaf004
Fix spacebars optimizer
...
It was accidentally disabled, and it tried to optimize SVG, invalidly.
2013-12-11 15:25:11 -08:00
David Greenspan
5dcb59b890
remove extra spaces in HTML
2013-12-11 15:05:48 -08:00
David Greenspan
45bd7f9e73
SVG clock demo
2013-12-11 14:59:55 -08:00
David Greenspan
989cf2ab19
fix SVG attributes for real
2013-12-11 14:59:10 -08:00
David Greenspan
683fa46ab4
Basic SVG support
...
Also: allow numbers and booleans in htmljs
2013-12-11 14:33:21 -08:00
David Greenspan
b4cd5ec4bd
fix emboxValue
2013-12-10 19:50:11 -08:00
David Greenspan
0f26061cc4
support {{#if}} in TEXTAREA
2013-12-10 19:43:09 -08:00
David Greenspan
35341b44b4
support basic tag in TEXTAREA
2013-12-10 12:57:42 -08:00
David Greenspan
bcad63a027
Merge branch 'shark-html2' into shark
2013-12-10 11:47:57 -08:00
David Greenspan
c7dab4859a
tests for details of new dyn attribute behavior
2013-12-10 11:47:33 -08:00
David Greenspan
b5b292ddf6
pass tests
2013-12-10 11:30:17 -08:00
David Greenspan
01adc79763
getTag for unknown elements
2013-12-09 23:35:30 -08:00
David Greenspan
54ef42a8f8
attribute compilation tests
2013-12-09 23:31:04 -08:00
David Greenspan
e954329334
bug fixes
2013-12-09 23:22:51 -08:00
David Greenspan
556870983e
more tests and fixes
...
- moved tojs.js into spacebars
Some failing tests in `spacebars-tests` and `ui`
```
meteor test-packages spacebars htmljs html spacebars-tests ui
```
2013-12-09 23:12:12 -08:00
David Greenspan
cb2d331dbf
seems to work (not fully tested)
2013-12-09 22:52:20 -08:00
David Greenspan
87921cf178
Redo the HTML representation; needs debugging
...
Puts HTML.Tag, toHTML, and toJS in the "htmljs" package.
Introduces toText for textareas and attributes.
Changes dynamic attribute representation.
Instances of HTML.Tag, HTML.CharRef, etc. are now "instanceof".
Once this code seems to work, we'll move packages around further.
- "htmljs" is the runtime; can even take out "tocode.js"
- "html-tools" (new package) takes over for "html".
Then, port the tests.
2013-12-09 22:23:27 -08:00
David Greenspan
1d251574b7
add missing semicolon
...
just happened to notice it
2013-12-07 12:39:32 -08:00
David Greenspan
d304ebf865
close HTML tags in accounts packages
2013-12-07 12:27:22 -08:00
David Greenspan
f3715306e1
Correctly materialize and toHTML textareas
2013-12-07 10:35:36 -08:00
David Greenspan
0ec049008b
HTML-parse TEXTAREAS with no template tags
2013-12-07 10:02:25 -08:00
David Greenspan
6c0908f5ab
Add failing TEXTAREA tests for HTML parser
2013-12-06 17:27:08 -08:00
Avital Oliver
fb3c71a141
Remove incorrect XXX comment
2013-12-06 15:15:02 -08:00
David Greenspan
0722127a8a
Merge branch 'shark-render2' into shark
2013-12-06 11:19:31 -08:00
David Greenspan
18113d2194
Remove yet more 2s
2013-12-06 01:35:12 -08:00
David Greenspan
99a8a7b9a7
Fix #constant and #isolate back-compat
...
Remove references to old built-in components
2013-12-06 01:30:50 -08:00
David Greenspan
1952a61c53
De-2 {render,parse,compile,mustache}2
2013-12-06 01:27:07 -08:00
David Greenspan
0c087cc84a
html2_scanner -> html_scanner
2013-12-06 01:22:02 -08:00
David Greenspan
2e4199e9ee
get rid of 2s in file names
2013-12-06 01:19:22 -08:00
David Greenspan
7dc913723d
Destroy tons of dead code
2013-12-06 01:12:25 -08:00
David Greenspan
47953854bb
Render test results using html2! break embox...
...
This commit does the minimum to switch to the new renderer,
by mapping .html to html2_scanner. Now we have to remove
all the references to "2" and all the old dead code, of course.
Our use of emboxValue breaks test-in-browser pretty severely
by assuming that in `{{#each results}}`, if `results` is `===`
to what it was last time, then there is no change. In fact,
test-in-browser mutates arrays and expects invalidating the
result to cause a re-render.
2013-12-06 00:32:12 -08:00
David Greenspan
7e838c0429
some back-compat for Template.foo.events = {...}
...
GREEN LIGHTS
2013-12-06 00:13:53 -08:00
David Greenspan
49b1bfbeb5
fix odd test failure (typo?)
2013-12-06 00:01:07 -08:00
David Greenspan
49270ee274
Don't expect {{toString}} to be not found
...
We used to test that `{{toString}}` is undefined on a fresh
template, but now it resolves as a helper, along with
various other bits of name pollution that we can't tell
apart from real helpers/methods now that we search the
prototype chain, like `{{data}}`, `{{events}}`, `{{kind}}`,
and so on. We should do something about that at some point.
2013-12-05 23:57:48 -08:00
David Greenspan
0a05648393
fix keyword args
2013-12-05 23:56:48 -08:00
David Greenspan
b3a2d6d99d
Fix a Template name collision that broke tests
2013-12-05 23:31:57 -08:00
David Greenspan
4bdb1c7fda
fix a couple tests
2013-12-05 23:07:51 -08:00
David Greenspan
7e5d64b430
Fix test of rendered callback to current behavior
2013-12-05 22:14:23 -08:00
David Greenspan
3e398ab4f9
Make duplicate template error message like devel
2013-12-05 17:43:38 -08:00
David Greenspan
b180a8e650
helper calls WIP
...
Breaks some tests. Not sure what's happening.
2013-12-05 17:41:10 -08:00
David Greenspan
37fb37895b
remove dead code
2013-12-05 17:37:52 -08:00
Avital Oliver
da89dcf93b
Re-enable event handlers
2013-12-05 17:10:59 -08:00
Avital Oliver
c940ca91e6
Fix test; {{foo}} when foo is null renders empty string
2013-12-05 16:52:43 -08:00
David Greenspan
6397fec3dc
Port html_scanner tests; detect duplicate templates
...
Reintroduce a Template.__define__ (like on devel)
Remove old compiler tests
2013-12-05 16:31:59 -08:00
David Greenspan
54ead3fca2
Start to fix dots in block helper args
2013-12-05 16:31:59 -08:00
Avital Oliver
197a812a47
Fix {{..}} and kin
2013-12-05 15:43:06 -08:00
David Greenspan
b619a5b1be
Add Spacebars compile tests with current output
2013-12-05 11:55:57 -08:00
David Greenspan
9359c85d7d
don't embox __content and __elseContent
2013-12-04 21:46:57 -08:00
Avital Oliver
a2d3b27787
Fix {{#each}} test
...
{{#each}} seems to fully work now.
2013-12-04 21:29:18 -08:00
Avital Oliver
e3b6743f59
Make {{#each}} partially work
2013-12-04 21:22:30 -08:00