Skip to content

Commits

Commits on Dec 29, 2021

  1. Update repository URL

    Related to c295ef0.
    jaylinski committed Dec 29, 2021
    Copy the full SHA
    c18ed16 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Copy the full SHA
    82c6132 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 22, 2021

  1. Fix typos

    This was found by running an IntellijIDE
    code inspection for proofreading.
    jaylinski committed Dec 22, 2021
    Copy the full SHA
    fe58756 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 3, 2021

  1. Update repository URL

    jaylinski committed Dec 3, 2021
    Copy the full SHA
    c295ef0 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. Fix Grammar in "compiler-api"

    s-mrb authored and jaylinski committed Nov 23, 2021
    Copy the full SHA
    e538c29 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 9, 2019

  1. Merge branch '4.x'

    # Conflicts:
    #	components/bower.json
    #	components/handlebars.js.nuspec
    #	components/package.json
    #	package-lock.json
    #	package.json
    nknapp committed Nov 9, 2019
    Copy the full SHA
    b0bb2a4 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 27, 2019

  1. Add Handlebars.parseWithoutProcessing (#1584)

    When authoring tooling that parses Handlebars files and emits Handlebars
    files, you often want to preserve the **exact** formatting of the input.
    The changes in this commit add a new method to the `Handlebars`
    namespace: `parseWithoutProcessing`. Unlike, `Handlebars.parse` (which
    will mutate the parsed AST to apply whitespace control) this method will
    parse the template and return it directly (**without** processing
    😉).
    
    For example, parsing the following template:
    
    ```hbs
     {{#foo}}
       {{~bar~}} {{baz~}}
     {{/foo}}
    ```
    
    Using `Handlebars.parse`, the AST returned would have truncated the
    following whitespace:
    
    * The whitespace prior to the `{{#foo}}`
    * The newline following `{{#foo}}`
    * The leading whitespace before `{{~bar~}}`
    * The whitespace between `{{~bar~}}` and `{{baz~}}`
    * The newline after `{{baz~}}`
    * The whitespace prior to the `{{/foo}}`
    
    When `Handlebars.parse` is used from  `Handlebars.precompile` or
    `Handlebars.compile`, this whitespace stripping is **very** important
    (these behaviors are intentional, and generally lead to better rendered
    output).
    
    When the same template is parsed with
    `Handlebars.parseWithoutProcessing` none of those modifications to the
    AST are made. This enables "codemod tooling" (e.g. `prettier` and
    `ember-template-recast`) to preserve the **exact** initial formatting.
    Prior to these changes, those tools would have to _manually_ reconstruct
    the whitespace that is lost prior to emitting source.
    rwjblue authored and nknapp committed Oct 27, 2019
    Copy the full SHA
    62ed3c2 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 9, 2019

  1. deprecate decorators

    nknapp committed Oct 9, 2019
    Copy the full SHA
    c56995d View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jun 18, 2019

  1. Fix typo in compiler API doc: "mutation" field should read as "mutating"

    The `Visitor` class expects a `boolean` property named `mutating`, instead of `mutation`.
    jbmusso committed Jun 18, 2019
    Copy the full SHA
    77e3833 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 17, 2017

  1. Extend compiler-api example by replacing child-compiler

    closes #1376
    
    (cherry picked from commit ce3cd8a)
    nknapp committed Oct 17, 2017
    Copy the full SHA
    59548b4 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 6, 2017

  1. Copy the full SHA
    ce3cd8a View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 29, 2017

  1. Fix compiler-api example (#1303)

    Closes #1302 
    
    While trying to answer #1302, I noticed that the compiler-api example did not work in (because `nameLookup` is actually at the prototype). This example has a jsfiddle that proves it is working.
    It does not provide an solve the exact problem of the reporter, but it answers the question.
    nknapp committed Jan 29, 2017
    4
    Copy the full SHA
    c997020 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 11, 2016

  1. Fix typos on decorators-api.md.

    adjohnson916 authored and lawnsea committed Nov 11, 2016
    Copy the full SHA
    577b760 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jul 21, 2016

  1. Update definition of BlockStatement.path

    As pointed in #1237 BlockStatement.path accepts in practice PathExpression or Literal.  
    Updates its definition to reflect this fact
    blikblum committed Jul 21, 2016
    Copy the full SHA
    f2211dd View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 23, 2015

  1. Copy the full SHA
    ec64cf9 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Sep 1, 2015

  1. Add basic decorators docs

    Fixes #1088
    kpdecker committed Sep 1, 2015
    Copy the full SHA
    c13c7df View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Aug 22, 2015

  1. Implement block decorators

    These allow for a given block to be wrapped in helper methods or metadata and allow for more control over the current container and method before the code is run.
    kpdecker committed Aug 22, 2015
    Copy the full SHA
    452afbf View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Add decorator parsing

    kpdecker committed Aug 22, 2015
    Copy the full SHA
    408192b View commit details
    View at this point in the history
    Browse the repository at this point in the history
  3. Copy the full SHA
    1c27408 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  4. Implement partial blocks

    This allows for failover for missing partials as well as limited templating ability through the `{{> @partial-block }}` partial special case.
    
    Partial fix for #1018
    kpdecker committed Aug 22, 2015
    Copy the full SHA
    91ffd32 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Apr 8, 2015

  1. Add undefined and null literal support

    This adds the UndefinedLiteral and NullLiteral to AST.
    
    Fixes #990
    kpdecker committed Apr 8, 2015
    Copy the full SHA
    2d149e7 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Feb 10, 2015

  1. 2
    Copy the full SHA
    55dc82d View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 18, 2015

  1. Avoid direct references to sexpr in statements

    This allows us to avoid creating unnecessary AST nodes and avoids things like isHelper.
    
    Side effect of these changes is that @DaTa functions can now have data parameters passed to them.
    kpdecker committed Jan 18, 2015
    Copy the full SHA
    884bf15 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Update for proposed SubExpression dependency break

    Avoids parsing against SubExpressions and instead inlines the content that a subexpression otherwise would have. This can still be based via duck typing so should not add much overhead to the compiler.
    kpdecker committed Jan 18, 2015
    Copy the full SHA
    999da73 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  3. Copy the full SHA
    d567d9c View commit details
    View at this point in the history
    Browse the repository at this point in the history
  4. Add support for dynamic partial names

    Uses the subexpression syntax to allow for dynamic partial lookups. Ex:
    
    ```
    {{> (helper) }}
    ```
    
    Fixes #933
    kpdecker committed Jan 18, 2015
    Copy the full SHA
    cb51b82 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 26, 2014

  1. Copy the full SHA
    9ff3daf View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 30, 2014

  1. Copy the full SHA
    f84f76f View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 29, 2014

  1. Copy the full SHA
    a655aed View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Rework strip flags to make clearer at in AST level

    Rather than keeping state in the AST, which requires some gymnastics, we create a separate visitor flow which does the top down iteration necessary to calculate all of the state needed for proper whitespace control evaluation.
    kpdecker committed Nov 29, 2014
    Copy the full SHA
    928ba56 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 28, 2014

  1. Copy the full SHA
    95b2309 View commit details
    View at this point in the history
    Browse the repository at this point in the history