Skip to content

Commit

Permalink
Merge pull request #688 from kethinov/0.6.10
Browse files Browse the repository at this point in the history
0.6.10
  • Loading branch information
kethinov authored Sep 16, 2024
2 parents 47708eb + a80f9f3 commit 9fccd79
Show file tree
Hide file tree
Showing 9 changed files with 893 additions and 334 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

- Put your changes here...

## 0.6.10

- Added support for template literal `${templateLiteral}` variables.
- Fixed bug that caused Teddy to crash if you attempted to loop through a Set.
- Replaced internal HTML entities scanner with the `html-entities` npm package.
- Updated various dependencies.

## 0.6.9

- Fixed issue with rendering variables with empty strings piped through variables with flags.
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Teddy is the most readable and easy to learn templating language there is!

Or put a more technical way, Teddy is an easy to read, HTML-inspired, mostly logic-less DOM templating engine with support for both server-side and client-side templating.

It uses HTML-like `<tags>` for rudimentary templating logic and Teddy Roosevelt's facial hair for `{variables}`.
It uses HTML-like `<tags>` for rudimentary templating logic and Teddy Roosevelt's facial hair for `{variables}`.

[Check out this live demo](https://rooseveltframework.github.io/teddy/playground.html) or see below for documentation on how to write Teddy templates.

Expand Down Expand Up @@ -119,6 +119,7 @@ HTML entities such as `<`, `>`, `&`, `'`, and `"` will be escaped by default as

If you need to suppress this escaping in certain scenarios, write your variable like this: `{varName|s}`.

You can also use template literal `${templateLiteral}` variables as well.

Includes
---
Expand Down Expand Up @@ -213,7 +214,7 @@ An `<unless>` statement structure with an `<elseunless>` tag which is evaluated
</else>
```

Note: `<if something>` and `<if something=''>` are considered logically equivalent statements in Teddy.
Note: `<if something>` and `<if something=''>` are considered logically equivalent statements in Teddy.

Boolean logic
---
Expand Down Expand Up @@ -387,7 +388,7 @@ Here's what the attributes mean:
- `maxCaches`: The maximum number of caches that Teddy will be allowed to create for a given `<cache>` element. If the maximum is reached, Teddy will remove the oldest cache in the stack, where oldest is defined as the least recently created *or* accessed.
- Default: 1000.

You can also cache whole templates. For more details about that, see the API docs below.
You can also cache whole templates. For more details about that, see the API docs below.

A complex example combining many tags
---
Expand Down
Loading

0 comments on commit 9fccd79

Please sign in to comment.