summaryrefslogtreecommitdiffstats
path: root/lib/handlebars
Commit message (Collapse)AuthorAgeFilesLines
* Update to 1.0.0 finalkpdecker2013-05-311-1/+1
|
* Merge global and passed helpers and partialskpdecker2013-05-313-4/+16
|
* Allow execution of helpers on the contextkpdecker2013-05-301-1/+2
| | | Fixes #285
* Allow function arguments to with and eachkpdecker2013-05-291-0/+6
| | | | Via @mcdan Fixes #239
* improve error message on missing helperkpdecker2013-05-291-1/+1
| | | | Via @stefanpenner Fixes #523
* 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
|
* Use better variable namekpdecker2013-05-211-6/+6
|
* Rev to rc4kpdecker2013-05-131-1/+1
|
* added local pointer to handlerbars.utils to allow this to browserify ↵Tommy Messbauer2013-05-091-0/+2
| | | | properly for IE
* 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.
* | Allow multiple partial and helper registrationkpdecker2013-04-072-5/+24
| | | | | | | | | | | | Fixes #369
* | Merge branch 'program-metadata'kpdecker2013-04-073-19/+19
|\ \
| * | Add program metadatakpdecker2013-02-173-19/+19
| | | | | | | | | | | | | | | | | | 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
* | | Force toString in escapeExpressionkpdecker2013-04-061-0/+5
| |/ |/| | | Fixes #211
* | Merge pull request #213 from thejohnfreeman/masterKevin Decker2013-03-131-1/+1
|\ \ | | | | | | Block helper "with" should check for empty context
| * | block helper "with" should check for empty contextJohn Freeman2012-03-311-1/+1
| | |
* | | Added handlebars-source gemspec for sharing with 3rd party precompilation libsmachty2013-02-201-0/+11
| |/ |/|
* | Create new options object for unless nestingkpdecker2013-02-161-5/+1
| | | | | | Fixes #343
* | 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-162-1078/+1073
| | |
* | | browser-prefix/suffix templateskpdecker2013-02-163-5/+5
| | |
* | | Remove unused scope functionkpdecker2013-02-161-101/+98
|/ /
* | Restore module scope in base.jskpdecker2013-02-151-6/+7
| |
* | Merge branch 'master' of github.com:tommydudebreaux/handlebars.js into ↵kpdecker2013-02-159-27/+67
|\ \ | | | | | | | | | tommydudebreaux-master
| * | tests passingTommy Messbauer2013-02-112-2/+2
| | |
| * | mergeTommy Messbauer2013-02-117-197/+447
| |\ \
| * | | restored scope of var verifyMatchTommy Messbauer2013-02-111-6/+6
| | | |
| * | | Merged upstream master and ran unit testsTommy Messbauer2012-11-265-22/+34
| |\ \ \
| * | | | Factory update with tabs to spaces.. sorry :(Tommy Messbauer2012-11-269-1365/+1365
| | | | |
| * | | | Finished factory patternTommy Messbauer2012-08-292-3/+4
| | | | |
| * | | | Commiting initial factory codeTommy Messbauer2012-08-299-1240/+1280
| | | | |
* | | | | Updated to 1.0.0-rc.31.0.0-rc.3Peter Wagenet2013-02-141-2/+2
| |_|/ / |/| | |
* | | | Better error messages for precompiler runtime mismatchPeter Wagenet2013-02-093-4/+26
| | | |
* | | | Decouple compiler version checks from release versionsPeter Wagenet2013-02-083-3/+4
| | | |
* | | | 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-302-6/+8
| | | | | | | | | | | | | | | | | | | | 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
|/ / / /
* | | | Update version1.0.rc.2tomhuda2013-01-181-1/+1
| | | |
* | | | 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 branch 'master' of github.com:wycats/handlebars.jskpdecker2013-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
| | | | | |
* | | | | | Simplify isEmptykpdecker2013-01-131-5/+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-232-12/+21
|\ \ \ \ | | | | | | | | | | 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-202-12/+21
| | | | |
* | | | | 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
|/ / / /
* | | | Fix handling of Errors in ChromePeter Wagenet2012-11-021-4/+6
|/ / /
* | | Implemented ability to iterate over objects, ala for-in.Ross Hadden2012-10-151-6/+19
| | | | | | | | | | | | | | | | | | Also added the 'key' key to looped objects. My goal is to make this {{@key}}, but am still working on it. I would also like to unobtrusively make @key or @index work for arrays.
* | | 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.
* | | Merge pull request #198 from codekitchen/masterYehuda Katz2012-09-141-1/+2
|\ \ \ | | | | | | | | properly handle ampersands when HTML escaping
| * | | properly handle amperstands when HTML escapingBrian Palmer2012-02-291-1/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | escapeExpression, when given a string like "&gt;", was simply returning "&gt;", not escaping the amperstand. This is incorrect, and makes it impossible to have Handlebars properly escape a string like "Escaped, <b> looks like: &lt;b&gt;" If the intention of the user is to not escape these characters, then {{{}}} or {{&}} should be used
* | | Merge pull request #297 from karlwestin/fix-reverse-arrayYehuda Katz2012-09-141-5/+2
|\ \ \ | | | | | | | | Fixed an issue where {{#array}} {{/array}} wouldn't pass in an @index data variable
| * | | Fixed an issue where {{#array}} {{/array}} wouldn't pass in anKarl Westin2012-08-271-5/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | @index data variable. I just thought it would be nice to add in this feature. I'm using the two of these a little interchangable, so if other people are doing that as well, it might help usability.
* | | Ensure plain text partials supplied to registerPartials are compiled using ↵Kiall Mac Innes2012-09-131-1/+1
|/ / | | | | | | data: true if necessary.
* | Merge with upstream/masterkpdecker2012-08-211-1/+7
|\ \
| * | Fix handling of this parameters in helperskpdecker2012-07-301-1/+7
| | | | | | | | | Fixes issue introduced in 727eb26cb6a9e89ab08596dedbabcec0becb4d75