Commits

Author Commit Message Labels Comments Date
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
* Run functional tests from "make test" * Clean up the output from all test suites * New README file * Remove create_parser stuff because "make" handles this * Make erlydtl:compile/2,3 a wrapper for erlydtl_compiler:compile/2,3
Tags
0.5.0
colm...@a5195066-8e3e-0410-a82a-05b01b1b9875
Issue #1 Changed the 'now' tag to generate a call to erlydtl_dateformat rather than statically compile the date/time at compile time (doh).
colm...@a5195066-8e3e-0410-a82a-05b01b1b9875
* Added the ability to use filters in if/ifelse expressions, e.g. : {% if var1|length_is:10 %} {% ifequal months_list|length %} * fixed a bug with erlydtl_runtime:are_equal which always returned false when comparing 2 single character values, e.g. : erlydtl_runtime:are_equal("9", "9"). erlydtl_runtime:are_equal("x", "x"). .. always returned false. This would have manifested itself in the scenario {% ifequal foo "x" %} where foo was a variable with the val…
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
Support for "cycle" tag. Patch from Hunter Morris.
colm...@a5195066-8e3e-0410-a82a-05b01b1b9875
Added date filter as per Django, e.g. {{ date_var1|date:"r" }}. Fixed a rendering bug in examples/docroot/filters which was failing because it was still using the "plus" filter which was renamed to "add" at some point. Changed it to "add".
colm...@a5195066-8e3e-0410-a82a-05b01b1b9875
Renamed the dateformat module to erlydtl_dateformat
colm...@a5195066-8e3e-0410-a82a-05b01b1b9875
Missing file in last checkin.
colm...@a5195066-8e3e-0410-a82a-05b01b1b9875
Added "now" tag and associated associated dateformat module.
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
* Rename "plus" to "add" to conform to standard DTL. * Throw error for undefined variable in the "for" tag.
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
Support additional for loop variables: "revcounter", "revcounter0", "first", "last", "parentloop".
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
1. Can resolve variables from function calls to parameterized modules, e.g. -module(foo, [Var]). get_var() -> Var. ... render([{var1, foo:new("bar")}]). ... {{ var1.get_var }} => <<"bar">> 2. Support for recursive variable attributes, e.g. {{ var.attr.attr.attr }} Tests added for both.
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
example templates bugfix: call custom tag cannot not call a module which name is a erlydtl tagname, now all examples are building again
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
deleted some old stuff and set svn:ignore on examples/rendered output
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
fixed the functional tests and renamed the folder to "exampes"
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
* Added unit test suite covering most tags that don't require file IO. Please add new tests when implementing new language features, and always run "make test" before committing! * Support for looking up variables and attributes in dicts and gb_trees (not just proplists). * Small refactor of erlydtl_compiler to support in-memory compilation and reload (just pass in a binary as the first argument to compile/2 or compile/3) * Move some template evaluation logic into erlydtl_runtime, a new dependency for compiled templates. * All filters will now process binaries, not just li…
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
added new testsuite
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
just a typo and added a comment
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
New "escapejs" filter (Django standard)
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
improved error reporting
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
recompile always if debug compile custom flag is set
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
added recompilation-skip if beamfile exists and checksum of template source file has not changed (currently disabled, but works)
emmi...@a5195066-8e3e-0410-a82a-05b01b1b9875
Bugfix: Use "io_lib" instead of "io" library so we return a string instead of printing to stdout.
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
fixed file dependencies for custom call tag and extended test case
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
aded test for call tag
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
added call custom tag (based on patch from Jeremey Latt) - not complete yet - test case missing
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
renamed custom tag directory
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
added custom directory for custom tags as template compile option
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
improved error reporting when compilation fails
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
completed the load tag implementation
rsa...@a5195066-8e3e-0410-a82a-05b01b1b9875
replaces process-dictionary based preset variable counter (for unique IDs) with side effect free, treewalker based counter
  1. Prev
  2. Next