ventojs / vento

🌬 A template engine for Deno & Node
https://vento.js.org/
MIT License
182 stars 10 forks source link

Object assignment #49

Closed oscarotero closed 6 months ago

oscarotero commented 6 months ago

I just realized with the removal of with in #43 that now it's not possible to assign variables to an object like this:

{{ import "filename.vto" { username } }}

It's needed to do:

{{ import "filename.vto" { username: username } }}

@wrapperup do you think is possible to implement this? I can try but maybe it's easier for you because you have more experience creating the transformer.

wrapperup commented 6 months ago

Ah I see, I guess we need to rewrite those as well. Sure I can do it.