summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler
Commit message (Collapse)AuthorAgeFilesLines
...
* | Wrap AST nodes in strip opcodes if definedkpdecker2013-10-141-2/+14
| |
* | Use accept for all compiler traversalkpdecker2013-10-141-4/+3
| |
* | Kill unused functionskpdecker2013-10-141-9/+0
| |
* | Push Source helper methodkpdecker2013-10-141-11/+15
| |
* | Pass open token to MustacheNode for flag parsingkpdecker2013-10-141-2/+3
| |
* | Fix argument not found errorkpdecker2013-10-141-1/+1
| |
* | Pass options hash to context function execkpdecker2013-10-141-1/+1
| | | | | | Fixes #599
* | Fix transpiler error in printer.jskpdecker2013-10-121-1/+4
| |
* | Remove global Handlebars referenceskpdecker2013-10-091-1/+1
| |
* | Use template env and compile methodskpdecker2013-10-091-3/+2
| |
* | Expose current Handlebars namespace fieldskpdecker2013-10-011-1/+1
| |
* | Use proper default vs. module import semanticskpdecker2013-10-015-40/+37
| |
* | Break exception class out into a standalone modulekpdecker2013-10-012-2/+2
| |
* | Fix global Handlebars referenceskpdecker2013-10-011-4/+4
| |
* | Update logger for es6 moduleskpdecker2013-09-301-13/+4
| |
* | Merge commit '87b5d4ee61605b026506e92c9e8873d867c5f150' into es6-moduleskpdecker2013-09-021-3/+3
|\ \ | |/ | | | | | | | | | | | | Conflicts: dist/handlebars.js dist/handlebars.runtime.js lib/handlebars/base.js lib/handlebars/utils.js
| * Remove unused varkpdecker2013-07-301-3/+3
| |
* | Make the Handlebars environment into an objectYehuda Katz2013-07-261-3/+3
| | | | | | | | | | | | | | | | 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.
* | Further progress towards modularization.Yehuda Katz2013-07-245-29/+44
| | | | | | | | | | 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.
* | Building an AMD fileYehuda Katz2013-07-164-6/+4
| |
* | More modularizationYehuda Katz2013-07-023-54/+21
| |
* | Initial work on ES6 modulesYehuda Katz2013-07-014-84/+50
|/
* Break JavascriptCompiler into standalone filekpdecker2013-06-033-845/+861
|
* Remove unnecessary functionkpdecker2013-06-021-6/+3
|
* Merge global and passed helpers and partialskpdecker2013-05-311-2/+3
|
* Allow execution of helpers on the contextkpdecker2013-05-301-1/+2
| | | Fixes #285
* Allow ID, STRING, or INTEGER for partial namekpdecker2013-05-291-1/+1
| | | Fixes #519
* Protect from object prototype modificationskpdecker2013-05-281-1/+3
| | | | Fixes #534
* Improve tracking of original path valueskpdecker2013-05-271-7/+12
|
* Add support for complex ids in @data referenceskpdecker2013-05-272-3/+11
|
* Merge pull request #454 from leshill/fix_string_mode_contextsKevin Decker2013-04-071-2/+13
|\ | | | | Add contexts for string mode hash values
| * Add contexts for string mode hash valuesLes Hill2013-03-191-2/+13
| | | | | | | | Allows for evaluating hash parameters such as ../city in string mode.
* | Merge branch 'program-metadata'kpdecker2013-04-071-6/+1
|\ \
| * | Add program metadatakpdecker2013-02-171-6/+1
| |/ | | | | | | | | | | Include program id and depth on the generated wrapper objects. This allows helpers who are passed these objects to differentiate between helpers for cases where they may want to cache the generated DOM structure.
* | Restore knownHelpersOnly throwkpdecker2013-04-061-1/+1
| | | | | | Fixes #302
* | Allow compilation of empty stringkpdecker2013-04-061-2/+2
| | | | | | Fixes #461
* | Escape unicode newlines in string literalskpdecker2013-04-061-1/+3
|/ | | Fixes #375
* Fix #428 nested if else renderingkpdecker2013-02-161-0/+11
| | | | The program equality checker was not taking children into account when determining equality, causing breakages under similar cases.
* Merge pull request #442 from tricknotes/fix-method-name-in-error-messageKevin Decker2013-02-161-1/+1
|\ | | | | Fix method name in error message
| * Fix method name in error messageRyunosuke SATO2013-02-161-1/+1
| | | | | | | | - compile -> precompile
* | Use local varskpdecker2013-02-161-4/+4
| |
* | Move Handlerbars.print into printer filekpdecker2013-02-162-3/+4
| |
* | Remove unnecessary child scopeskpdecker2013-02-161-1043/+1040
| |
* | Remove unused scope functionkpdecker2013-02-161-101/+98
|/
* tests passingTommy Messbauer2013-02-111-1/+1
|
* mergeTommy Messbauer2013-02-114-187/+396
|\
| * Better error messages for precompiler runtime mismatchPeter Wagenet2013-02-091-1/+3
| |
| * Decouple compiler version checks from release versionsPeter Wagenet2013-02-081-1/+1
| |
| * Handlebars.parse/precompile/compile can now be passed an already-compiled ↵machty2013-02-072-10/+14
| | | | | | | | Handlebars AST.
| * Improved precompile template version checkPeter Wagenet2013-01-301-4/+1
| | | | | | | | | | This check reduces duplicated code as well as also failing if the template was precompiled on a version before the check was added.
| * Check version when evaluating templates.Peter Wagenet2013-01-291-0/+7
| | | | | | | | | | This makes sure that we throw an error when a template was precompiled with a version of Handlebars that doesn't match the evaluating version.
| * Merge pull request #412 from wycats/inline-opsKevin Decker2013-01-211-70/+217
| |\ | | | | | | Inline ops
| | * mergeSource helperkpdecker2013-01-211-10/+14
| | |
| | * Merge duplicate programskpdecker2013-01-211-6/+43
| | |
| | * Remove inline option from pushStackkpdecker2013-01-211-13/+9
| | |
| | * Use push rather than pushStack for inline opskpdecker2013-01-211-11/+11
| | |
| | * Make replaceStack always inlinekpdecker2013-01-201-6/+6
| | |
| | * Formatting updates for inlined contentkpdecker2013-01-201-2/+2
| | |
| | * Merge consecutive buffer appendskpdecker2013-01-201-10/+30
| | |
| | * Use options register for blockHelperMissingkpdecker2013-01-201-4/+9
| | |
| | * Inline known helper callskpdecker2013-01-201-1/+1
| | |
| | * Use stack rather than register for invoke lookupkpdecker2013-01-201-4/+6
| | |
| | * Prevent duplication of inline content in appendkpdecker2013-01-201-0/+3
| | |
| | * Update 2nd level opcodes to use inlineskpdecker2013-01-191-11/+19
| | |
| | * Allow replaceStack to work with the inline stackkpdecker2013-01-191-8/+35
| | |
| | * Use inline values for simple terminalskpdecker2013-01-191-4/+5
| | |
| | * Inline stack helper implementationkpdecker2013-01-191-16/+48
| | |
| | * Merge branch 'master' into inline-opskpdecker2013-01-191-4/+3
| | |\
| | * | Reuse stack var to avoid registerkpdecker2013-01-191-2/+1
| | | |
| | * | Output options only once to unknownHelper casekpdecker2013-01-191-6/+12
| | | |
| | * | Empty hash literal outputkpdecker2013-01-191-4/+11
| | | |
| | * | Inline foundHelper lookupkpdecker2013-01-191-4/+4
| | | |
| * | | Only allow 'this' or '..' to lead a pathLes Hill2013-01-211-2/+5
| | |/ | |/| | | | | | | Paths like 'outer/../key' raise an exception when compiling.
| * | Remove unused varskpdecker2013-01-191-4/+3
| |/
| * Boolean("false") === truetomhuda2013-01-181-1/+1
| |
| * Must pop the stack extra for hashestomhuda2013-01-181-0/+1
| |
| * Add support for getting types in string modeYehuda Katz2013-01-162-10/+44
| | | | | | | | | | This makes it possible to determine whether an argument was passed as a string or as a path when implementing helpers in string mode.
| * Prevent write on all depth variableskpdecker2013-01-131-1/+1
| |
| * Prevent context overwrite by replaceStackkpdecker2013-01-131-7/+14
| | | | | | Fixes #408.
| * Remove duplicate assignmentkpdecker2013-01-131-1/+1
| |
| * Merge pull request #400 from lushchick/masterKevin Decker2013-01-131-1/+1
| |\ | | | | | | Removed unnecessary semicolon to pass JSHint for compiled code
| | * Removed unnecessary semicolon, which is needed to pass JSHint for compiled codeAndrey Lushchick2012-12-271-1/+1
| | |
| * | Use jsmodule for jison parserkpdecker2013-01-131-1/+1
| |/ | | | | | | | | Removes unnecessary commonjs code generated for the parser. This reduces the size of the parse by about 700bytes and should resolve lookup issues with browserify and other static analysis tools. See #220
| * Merge pull request #347 from spikebrehm/masterYehuda Katz2012-12-231-10/+0
| |\ | | | | | | Makes Handlebars.log available in both builds and fleshes out `log` helper.
| | * overzealous approach to implmenting Handlebars.logger.log and 'log' helper.Spike Brehm2012-10-201-10/+0
| | |
| * | Merge pull request #389 from leshill/partial_namesYehuda Katz2012-12-233-10/+16
| |\ \ | | | | | | | | Partials can be paths
| | * | Partials can be pathsLes Hill2012-12-133-10/+16
| | |/ | | | | | | | | | | | | | | | Allows partials with slashes, a common partial syntax. For example: {{> shared/dude}}
| * | Merge pull request #390 from eastridge/masterYehuda Katz2012-12-231-2/+6
| |\ \ | | | | | | | | Make {data: true} a default compile option
| | * | Add data = true as default optionRyan Eastridge2012-12-131-2/+6
| | |/
| * | Get a better error for compile(falsy)Yehuda Katz2012-12-231-0/+8
| |/
* | restored scope of var verifyMatchTommy Messbauer2013-02-111-6/+6
| |
* | Merged upstream master and ran unit testsTommy Messbauer2012-11-262-4/+4
|\ \ | |/
| * Bind functions to the context properly.Tyson Tate2012-09-191-2/+2
| | | | | | | | | | | | The regression was introduced in 1.0.rc.1. This fixes issue #317.
* | Factory update with tabs to spaces.. sorry :(Tommy Messbauer2012-11-266-1161/+1161
| |
* | Finished factory patternTommy Messbauer2012-08-292-3/+4
| |
* | Commiting initial factory codeTommy Messbauer2012-08-296-1039/+1071
|/
* Fix handling of this parameters in helperskpdecker2012-07-301-1/+7
| | | Fixes issue introduced in 727eb26cb6a9e89ab08596dedbabcec0becb4d75
* Document lookupDataYehuda Katz2012-07-051-0/+6
|
* Reduce duplicationYehuda Katz2012-07-051-9/+5
|
* Make deep @data trigger the data optionYehuda Katz2012-07-051-2/+4
|