Permalink
Switch branches/tags
Nothing to show
Commits on Apr 6, 2011
  1. Fix for unit tests: a left over extra \n in generated code.

    laurie71 committed Apr 6, 2011
    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...
  2. Final step for reporting location of template compilation errors.

    laurie71 committed Apr 6, 2011
    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
  3. Fix indentation

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

    laurie71 committed Apr 6, 2011
    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.
  5. Prep for reporting location of template compilation errors.

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

    laurie71 committed Apr 6, 2011
    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.
Commits on Apr 1, 2011
  1. Fix #16, #22

    laurie71 committed Apr 1, 2011
    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.
Commits on Mar 7, 2011
  1. support for express 2.0

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

    laurie71 committed Mar 7, 2011
    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... :(
  3. Correct express dependency for the .91 version.

    laurie71 committed Mar 7, 2011
    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...
Commits on Mar 6, 2011
  1. inc version

    kof committed Mar 6, 2011
Commits on Mar 3, 2011
  1. move qunit to devDependencies

    defunctzombie committed Mar 3, 2011
    normal users will not need this
Commits on Feb 18, 2011
  1. add keyword

    kof committed Feb 18, 2011
Commits on Feb 17, 2011
  1. Closes #14. fixed issue if passing array to tmpl tag. some workaround…

    kof committed Feb 17, 2011
    …s are ugly, added tests
Commits on Feb 15, 2011
  1. add test for express partial method, change description, add note abo…

    kof committed Feb 15, 2011
    …ut jsons inside of template tags
Commits on Feb 14, 2011
  1. add module name in for test/main.js

    kof committed Feb 14, 2011
  2. Closes #14. Fixed issue with partials using tmpl tag, use util.debug …

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

    kof committed Feb 11, 2011
Commits on Feb 10, 2011
Commits on Feb 1, 2011
  1. add partials docu

    kof committed Feb 1, 2011
Commits on Jan 31, 2011
  1. make lint

    kof committed Jan 31, 2011
  2. partial views

    kof committed Jan 31, 2011
Commits on Dec 30, 2010
  1. add main for npm

    kof committed Dec 30, 2010
Commits on Nov 29, 2010
  1. inc version for npm

    kof committed Nov 29, 2010
  2. Closes #8. Fix {{tmpl}}.

    kof committed Nov 29, 2010
  3. Closes 10. Implement each to be able to iterate over objects and arra…

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

    kof committed Nov 23, 2010
Commits on Nov 7, 2010
  1. fix the docu

    kof committed Nov 7, 2010
  2. fix docs

    kof committed Nov 7, 2010
  3. fix docs

    kof committed Nov 7, 2010
  4. fix docs

    kof committed Nov 7, 2010
  5. fix docs

    kof committed Nov 7, 2010