All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.12.5 - 2024-04-06
0.12.4 - 2024-03-28
- Parsing dynamic includes with extra data, example:
{{ include `${filename}.vto` { name: "value" } }}
- Object property shorthand #50
- Updated dependencies.
0.12.2 - 2024-03-25
- Nested layouts #46.
set
tags don't work withuseWith
if the variable is already defined.- Clean all
__output += ""
code outputs.
0.12.1 - 2024-03-08
- Updated missing dependencies
- Error with empty templates
0.12.0 - 2024-03-08
- Added the files from
src
folder in npmexports
entry #38. - Automatic code transform to avoid the use of
with
#43, #44. (thanks @wrapperup)
useWith
option.
- Updated dependencies.
0.11.0 - 2024-02-29
- Preprocessor hooks #33.
- Support for query strings and hashes in the import paths #33.
auto_trim
plugin #35.
- Internal: refactor tag trimming.
escape
andunescape
filters for non-string values #36.
0.10.2 - 2024-01-16
for
not working as expected with AsyncIterable #28
0.10.1 - 2024-01-08
- Filters of type
AsyncFunction
are automatically awaited. No need to add theawait
keyword manually.
0.10.0 - 2023-12-23
- Filters can use
this
to access to theEnvironment
instance and contextual data.
- The following use cases are now correctly parsed:
- Starting comments inside other comment:
/* This /* is a comment */
- Regular expressions including quotes or brackets:
"Hello's".replace(/'/, "")
- Starting comments inside other comment:
- The Javascript tag allows a linebreak after the
>
character and support line comments. Example:{{> // Line comment console.log("hello"); }}
- Updated
std
dependencies.
0.9.2 - 2023-12-13
useWith
configuration does not work #25.- Updated dependencies.
0.9.1 - 2023-11-03
- Improved error messages.
- Updated dependencies.
0.9.0 - 2023-09-24
- New option
useWith
to remove thewith
statement. - New filter
safe
to avoid autoescape the content #20.
- Use the
std/html
implementation forescape
andunescape
filters. - Simplified compiled function: removed
__data
and__tmp
variables. unescape
no longer disables autoescaping, onlysafe
does #20.
0.8.1 - 2023-09-14
- CJS version to NPM package #16.
- Language definition for Highlight.js
0.8.0 - 2023-09-04
- New
echo
tag #14. - New
unescape
filter. - New option
autoescape
. include
supports pipes. For example:{{ include "template.vto" |> toUpperCase }}
layout
supports pipes. For example:{{ layout "template.vto" |> markdown }}Text in markdown{{ /layout }}
- The
raw
tag. Useecho
instead.
- Use correct key for cache queries #15
0.7.3 - 2023-09-02
0.7.2 - 2023-09-02
- Escape backtick and
${
in the template #10. - Updated dependencies
0.7.1 - 2023-08-08
import name from ...
tag.
0.7.0 - 2023-08-08
function
,import
andexport
tags #9.runStringSync
function to run Vento in sync mode.
run
andrunString
returns aTemplateResult
interface, instead of a string.
0.6.0 - 2023-07-03
layout
tag.
- Docs are now at https://vento.js.org
0.5.1 - 2023-06-29
- Regular expression for
{{ set }}
tag. - Multiline code for
set
,include
,for
0.5.0 - 2023-06-18
- Allow to add arbitrary JavaScript expressions with
{{> [js code] }}
.
0.4.0 - 2023-06-14
- Support for trims #2.
For example:
<h1> {{- title -}} </h1>
. - Support for comments #3.
For example:
{{# this is a comment #}}
. - Support for raw code #4.
For example:
{{raw}} {{ username }} {{/raw}}
. - Support for async filters and global functions #5 For example: {{ url |> await fetch |> await json |> JSON.stringify }}
- Template literals in includes #1.
- Chain errors using the
cause
property.
0.3.1 - 2023-06-14
- Improved errors.
- Print
null
andundefined
values.
0.3.0 - 2023-06-12
- New option
dataVarname
. - Benchmark for Eta.
- Improved the tokenizer.
0.2.0 - 2023-06-10
runString
function.
- Removed
=
character for printing tags.
0.1.0 - 2023-06-04
First version