Blake Embrey
2f0c96b618
Make the environment reusable.
2013-12-28 21:35:40 -05:00
kpdecker
86974b2660
jshint
2013-12-01 14:59:44 -06:00
kpdecker
078c1eecba
Export AST as an object rather than module
...
The parser expects the AST object to be mutable, which modules are not.
2013-12-01 11:37:25 -06:00
kpdecker
855eae37d0
Create runtime specific module
2013-10-09 02:38:04 -07:00
kpdecker
fd09ff0e1b
Expose current Handlebars namespace fields
2013-10-01 21:41:09 -05:00
kpdecker
e75839b185
Break safe string out into standalone module
2013-10-01 21:18:10 -05:00
kpdecker
6a23391a9a
Break exception class out into a standalone module
2013-10-01 21:14:18 -05:00
kpdecker
27d9010974
Update logger for es6 modules
2013-09-30 23:52:44 -05:00
Yehuda Katz
6f580c9beb
Global Handlebars.compile uses its env
...
The basic strategy is that there will be a global Handlebars object for
the browser build, and that object will have a `compile` on it which
uses its environment in the compiler.
It will also be possible to glue things together manually by using the
AMD build and passing the environment to `compile` directly. Some of
these details are TBD.
2013-07-26 18:08:32 +00:00
Yehuda Katz
d33408fcbd
Move more testing mutations into the environment
2013-07-26 17:18:56 +00:00
Yehuda Katz
5f664dd78b
Make the Handlebars environment into an object
...
The idea is that the environment wraps up the mutable stuff in
Handlebars (like the helpers) and that you could theoretically create a
new one at any time and pass it in to Handlebars.template.
Every test makes a new environment and uses it in template compilation.
2013-07-26 16:50:37 +00:00
Yehuda Katz
f5c8484ea0
Further progress towards modularization.
...
At this point, I have only 2 fails in the Node build, but I'm doing a
bunch of manual stuff locally and still have a bunch of hacks.
2013-07-24 05:03:27 +00:00
Yehuda Katz
88ee4757e7
Initial work on ES6 modules
2013-07-01 13:59:58 -07:00
Jesse Clark
229b82bef5
Add unit tests for require() handler
2013-05-15 10:38:45 +10:00
Jesse Clark
531be77138
Publish a Node.js require() handler for handlebars files
2013-05-14 22:26:20 +10:00
Tommy Messbauer
7963218495
Factory update with tabs to spaces.. sorry :(
2012-11-26 09:39:08 -06:00
Tommy Messbauer
7c4813b417
Commiting initial factory code
2012-08-29 12:48:22 -05:00
Yehuda Katz
757d5250dc
Rename "vm" to "runtime" for clarity
2011-12-27 18:15:44 -08:00
kpdecker
4a9270aa38
Fix module loading within node
2011-07-30 12:18:56 -05:00
kpdecker
8c49721c70
Move visitor into compiler subdir
2011-07-30 10:28:31 -05:00
kpdecker
2fc01ff73a
Move art into compiler dir
2011-07-30 10:25:30 -05:00
kpdecker
bba08ad95f
Move printer into compiler dir
2011-07-30 10:23:37 -05:00
kpdecker
6aa9a30b02
Update node loader for compiler/vm split
2011-07-30 10:12:37 -05:00
tomhuda
5d99572006
Rename vm.js to compiler.js
2011-05-03 20:38:28 -07:00
tomhuda
d83e1c7484
Remove unnecessary original runtime implementation
2011-05-03 20:38:06 -07:00
wycats
bf6c74aa83
Restructure things more simply
2010-12-29 18:21:43 -08:00
wycats
0da3065987
Clean up after-effects of Jison fix
2010-12-28 15:46:26 -08:00
wycats
e15d675a64
Everything is working now on the new VM except for partials and inverse sections
2010-12-15 23:42:53 -08:00
wycats
ec948c7382
Small restructuring. Have I mentioned how much I hate having to write modules that work in both CommonJS and the browser?
2010-12-12 13:33:17 -08:00
wycats
9fcd85bbac
Allow helperMissing to apply to simple mustaches (paves the way to support things like link_to in a Rails context)
2010-12-11 18:43:58 -08:00
wycats
215754c268
Make helperMissing a built-in feature
2010-12-11 18:28:37 -08:00
wycats
5097c18912
Make it possible to register helpers and partials and then skip passing in the helpers or partials later
2010-12-11 18:10:56 -08:00
wycats
35b4d9fd01
linting
2010-12-04 22:26:41 -05:00
wycats
4db1abcd74
Fix up the compilation process
2010-12-04 17:35:36 -05:00
wycats
762329913d
Fix a number of outstanding issues:
...
* {{}} escape their contents, {{{}}} and {{& }} do not
* Add support in the parser, tokenizer and AST for partials
with context (support is still not there in the runtime)
* Fix some inconsistencies with the old behavior involving
the correct printing of null and undefined
* Add Handlebars.Exception
* Fixed an issue involving ./foo and this/foo
* Fleshed out helperMissing in the specs (this will be
moved out into handlebars proper once registerHelper
and registerPartial are added)
2010-12-02 01:13:24 -05:00
wycats
9846fb8a28
Got Qunit tests running through RSpec and fixed a bunch of bugs... 33 fails from the original suite to go
2010-11-28 17:36:05 -08:00
wycats
3b0970d8aa
Start working on the runtime
2010-11-25 23:32:32 -08:00
wycats
4b2e543d2e
Remove node dependency from handlebars.js
2010-11-25 11:52:35 -08:00
wycats
d97bc591a2
Restructure files to make more sense in a non-CommonJS world.
2010-11-25 02:49:08 -08:00
wycats
85fa2cb65f
Initial commit. Note that I'm using CommonJS modules and node purely to help me develop this. If this ends up being useful, I will likely distribute the entire package as a single JS file for easier consumption in the browser.
2010-11-25 00:50:57 -08:00