Skip to content
Commits on Apr 6, 2011
  1. Fix for unit tests: a left over extra \n in generated code.

    The \n was there in order to help with reporting accurate
    error location information for render-time errors, but I
    haven't worked the details out for that yet, so just
    removing the extra char for now...
    committed Apr 6, 2011
  2. Final step for reporting location of template compilation errors.

    For each template tag substitution, the start and end markers
    are passed in to the regex replace function. If The tag isn't
    valid, that information is used to include line/range info in
    the reported error.
    
    The result is error messages like:
    
        Template command not found: foo, at 3:1-12
    committed Apr 6, 2011
  3. Fix indentation

    (seperated from previous commit to keep the diff log more readable)
    committed Apr 6, 2011
  4. Prep for reporting location of template compilation errors.

    Step 3: unroll main substitution into an explicit loop in
    which we can track where each subst. occurs. With this and
    the line-break index we build up front, we'll be able to
    determine the source line and start/end line inded for
    each replaced tag, and can then report that information
    when a compilation failure (i.e. bad template syntax) is
    detected.
    committed Apr 6, 2011
  5. Prep for reporting location of template compilation errors.

    Step 2: break substitutions
    committed Apr 6, 2011
  6. Prep for reporting location of template compilation errors.

    Re-format buildTemplateFn() to break out markup conversion from
    template function construction. Next step: split off main
    regex replace, then turn it into a loop with source index
    tracking.
    committed Apr 6, 2011
Commits on Apr 1, 2011
  1. Fix #16, #22

    While I appreciate that the original jQuery plugin has the same
    issue, this is a real problem affecting people today, and it's
    a trivial fix. These issues are easily resolved by escaping,
    rather than removing, line-break characters.
    committed Apr 1, 2011
Commits on Mar 7, 2011
  1. @kof

    support for express 2.0

    kof committed Mar 7, 2011
  2. Provisional support for Express 2.

    Add support for Express 2.0 `compile()` method.
    This makes jqtpl compatible with Express 2.0.
    Backwards compatible with prior versions of
    Express, by virtue of leaving the existing
    `render()` method untouched.
    
    There are no new tests included, and I haven't
    verified the old tests still pass, as I can't
    get qunit to run on Node 0.4.2... :(
    committed Mar 6, 2011
  3. Correct express dependency for the .91 version.

    The .91 release doesn't work with Express 2.0.0beta.
    It should be re-published to the npm registry with
    this change, to avoid compatibility issues.
    
    Ideally, older versions would also get this change
    and a re-publish, to ensure minimum confusion...
    committed Mar 6, 2011
Commits on Mar 6, 2011
  1. @kof

    inc version

    kof committed Mar 6, 2011
Commits on Mar 3, 2011
  1. @defunctzombie

    move qunit to devDependencies

    normal users will not need this
    defunctzombie committed Mar 2, 2011
Commits on Feb 18, 2011
  1. @kof

    add keyword

    kof committed Feb 18, 2011
Commits on Feb 17, 2011
  1. @kof

    Closes #14. fixed issue if passing array to tmpl tag. some workaround…

    …s are ugly, added tests
    kof committed Feb 17, 2011
Commits on Feb 15, 2011
  1. @kof

    add test for express partial method, change description, add note abo…

    …ut jsons inside of template tags
    kof committed Feb 15, 2011
Commits on Feb 14, 2011
  1. @kof

    add module name in for test/main.js

    kof committed Feb 14, 2011
  2. @kof

    Closes #14. Fixed issue with partials using tmpl tag, use util.debug …

    …for debug option instead of util.print, rewrite tests based on qunit, add as dependency
    kof committed Feb 14, 2011
Commits on Feb 11, 2011
  1. @kof

    pimp the version

    kof committed Feb 11, 2011
Commits on Feb 10, 2011
  1. @kof
Commits on Feb 1, 2011
  1. @kof

    add partials docu

    kof committed Feb 1, 2011
  2. @kof
Commits on Jan 31, 2011
  1. @kof

    make lint

    kof committed Jan 31, 2011
  2. @kof

    partial views

    kof committed Jan 31, 2011
Commits on Dec 30, 2010
  1. @kof

    add main for npm

    kof committed Dec 30, 2010
Commits on Nov 29, 2010
  1. @kof

    inc version for npm

    kof committed Nov 29, 2010
  2. @kof

    Closes #8. Fix {{tmpl}}.

    kof committed Nov 29, 2010
  3. @kof

    Closes 10. Implement each to be able to iterate over objects and arra…

    …ys like jquerys one
    kof committed Nov 29, 2010
Commits on Nov 23, 2010
  1. @kof

    add index.js

    kof committed Nov 23, 2010
Commits on Nov 7, 2010
  1. @kof

    fix the docu

    kof committed Nov 7, 2010
  2. @kof

    fix docs

    kof committed Nov 7, 2010
  3. @kof

    fix docs

    kof committed Nov 7, 2010
  4. @kof

    fix docs

    kof committed Nov 7, 2010
  5. @kof
  6. @kof

    fix docs

    kof committed Nov 7, 2010
Something went wrong with that request. Please try again.