Skip to content

Releases: rooseveltframework/teddy

1.1.4

29 Apr 18:32
81a6cd2

Choose a tag to compare

  • Added slicker live demo docs.
  • Added some performance improvements.
  • Fixed a bug when escaping escape tags or escape comments.
  • Updated dependencies.

1.1.3

10 Apr 20:34
c1a1cdb

Choose a tag to compare

  • Added <!--# escape comments -->.
  • Updated dependencies.

1.1.2

09 Apr 11:50
8c1969e

Choose a tag to compare

  • Added teddy.clearTemplates() method to clear the template cache.
  • Updated dependencies.

1.1.1

08 Apr 16:34
bc3e092

Choose a tag to compare

  • Added support for variables-with-dashes-in-their-names.
  • Updated dependencies.

1.1.0

07 Apr 15:22
1130ad7

Choose a tag to compare

  • Added <escape> tag.
  • Excluded <pre> tags from Teddy parsing. Add a parse attribute to prevent this behavior.
  • Fixed a bug that could cause infinite loops in variable parsing.
  • Updated dependencies.

1.0.1

14 Mar 13:18
37bee1a

Choose a tag to compare

  • Fixed a bug that caused client-side Teddy to try to fetch resources from the server inappropriately while parsing the template.
  • Updated dependencies.

1.0.0

12 Mar 19:31
f7fe726

Choose a tag to compare

  • Added support for a new <!--! server-side comments --> syntax.
  • Changed the behavior of <include> tags to display an error when attempting to include a template that does not exist.
  • Updated various dependencies.

0.6.26

06 Mar 13:48
16246a9

Choose a tag to compare

  • Fixed a bug that could cause ${templateLiteral} strings to lose their $ character if they were meant to print as strings and not be parsed as Teddy variables.
  • Updated various dependencies.

0.6.25

05 Mar 13:41
354c0d9

Choose a tag to compare

  • Fixed bugs associated with selected-value and checked-value attributes.

0.6.24

04 Mar 15:32
51ff5e3

Choose a tag to compare

  • Added {varName|h} to force hide or {varName|d} to force display variable. This is a per-var override for:
    • teddy.setEmptyVarBehavior('hide'): Will make it possible for variables which don't resolve to display as empty strings instead of displaying the variable.
      • Default: 'display'.
  • Added support for sourcing most Teddy attribute values dynamically from {variables}.
  • Added boolean logic to one-line if statements.
  • Added selected-value and checked-value attributes for setting what option to select or what checkbox / radio to check in a more concise way than using one-line ifs.
  • Fixed a bug that prevented boolean logic from working if there were multiple and or multiple or attributes on an element.
  • Updated various dependencies.