Permalink
Commits on Sep 22, 2011
  1. Fix potential security vector

    - Fixes a potential security vector whereby if the value of a view model
      key references a PHP function, that function is called.
      - Now validates the callback to determine if it is a static method
        call or namespaced function call; if not, simply returns the value.
    weierophinney committed Sep 22, 2011
Commits on Apr 3, 2011
Commits on Sep 14, 2010
  1. SUB-VIEWS pragma implementation

    - Added ability to render "sub views", implementing a two-step view pattern.
    weierophinney committed Sep 14, 2010
Commits on Sep 8, 2010
Commits on Sep 2, 2010
  1. Added token caching capabilities

    - Added getAllTokens() and restoreTokens() methods to Mustache class
    - Documented usage of these methods in README.txt
    weierophinney committed Sep 2, 2010
  2. API documentation

    - Created API file and class level docblocks for all classes
    - Minor updates to the phpunit.xml file (to exclude mustache template files from
      code coverage)
    - Updated README.txt to demonstrate and explain autoloading
    weierophinney committed Sep 2, 2010
Commits on Sep 1, 2010
  1. Better whitespace handling

    - Strips excessive newlines from content tokens surrounding delim-set, comment,
      and section tokens.
    - Still have too much indentation; trying to resolve
    weierophinney committed Sep 1, 2010
  2. Small fix to project

    weierophinney committed Sep 1, 2010
  3. Usage documentation and updated todo

    - Documented: basic usage, pragmas, higher order sections, partials, and
      capabilities
    - Updated TODO to reflect current status
    weierophinney committed Sep 1, 2010
  4. Fix iteration tests

    - By default, iteration requires each "item" to be an object/hash; updated
      template and view objects to ensure appropriate tests
    weierophinney committed Sep 1, 2010
  5. Recursive partial handling

    - Properly handles recursive partials
    weierophinney committed Sep 1, 2010
  6. Tested and corrected pragma handling

    - Pragmas are section specific
    - Pragmas do not extend to partials
    weierophinney committed Sep 1, 2010
  7. Tested and corrected setting delimiters

    - Allows specifying alternate delimiters
    - Alternate delimiters set in section only apply to that section
    - Alternate delimiters apply to child sections
    - Alternate delimiters do not carry to partials
    weierophinney committed Sep 1, 2010
Commits on Aug 31, 2010
  1. Tested comments

    - Tested (and fixed) comment lexing and (lack of) rendering
    weierophinney committed Aug 31, 2010
Commits on Aug 30, 2010
  1. Updated TODO list

    weierophinney committed Aug 30, 2010
  2. Updated license wording

    weierophinney committed Aug 30, 2010
  3. Added license (new BSD)

    weierophinney committed Aug 30, 2010
  4. Updated README and TODO

    weierophinney committed Aug 30, 2010
  5. Fixed pragma tests

    - Typo in method call.
    - Add implicit iterator pragma to renderer, prior to rendering.
    weierophinney committed Aug 30, 2010
  6. Moved exceptions to their own directory

    - Moved all exceptions under Phly/Exception/
    - Updated code referencing exceptions
    - Updated autoloader
    weierophinney committed Aug 30, 2010
  7. Exceptions

    - Created discrete exceptions for all exceptional conditions
    weierophinney committed Aug 30, 2010
  8. Pragma refactoring

    - Pragmas are now classes, implementing a Pragma interface
    - Renderer checks for a pragma handler when it encounters a pragma token,
      throwing an exception if none found
      - for all tokens thereafter, it loops through registered pragmas, checks to
        see if any can handle the current token, and, if so, invokes them. The first
        to return a value will have that value appended to the content, and the
        renderer moves on to the next token.
    weierophinney committed Aug 30, 2010
Commits on Aug 29, 2010
  1. Pragma handling

    - Added lexer support for pragmas
    - Added renderer support for pragmas
      - Add pragma to a local list when found
      - On each iteration through tokens, pass to handlePragmas() first; if
        non-empty value is returned, append and continue.
    weierophinney committed Aug 29, 2010
  2. Higher order sections

    - Created logic for handling higher-order sections
    weierophinney committed Aug 29, 2010
  3. Iteration sections

    - Implemented iteration of sections, both for arrays and traversable objects
    weierophinney committed Aug 29, 2010
  4. Working partials

    - Partials now render per the mustache.5 manual
    - Also allows aliasing partials (per several mustache implementations)
    weierophinney committed Aug 29, 2010
Commits on Aug 28, 2010
  1. Section dereferencing

    - Section dereferencing with assoc arrays works
    - Section dereferencing with objects works
    weierophinney committed Aug 28, 2010
  2. Test priorities

    - Marked tests incomplete for features not yet implemented
    - Fixed lexer to add tokens for raw value and partial
    weierophinney committed Aug 28, 2010
  3. Hacking on tests

    - Marked tests as incomplete for functionality not yet completed
    - Split partial tests into two -- one for partials referenced in a template, one
      for partials aliased via an argument to the render() call
    weierophinney committed Aug 28, 2010