Replies: 1 comment
-
Hi For information, I've been able to include external html file and pass Mavo properties to it this way: main.html
template.html => This works, => except you'll not be able to edit with Mavo the properties inside the template file (Would it be connected to #836 ? )
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I would like to know if someone already tried Mavo as some kind of 'template engine':
I'm trying to split some html sections of my mavo main page, into external html files, using 'mv-if'
It works fine using this method here
main.html
template.html
<div>How are you [name] ?</div>
=> External template is included , 🎉
😓 EXCEPT I'm not able to see the property value
(I also tried to declare property inside the template.html file, but it doesn't work)
I also tried to register the new element, including following script into main.html (sorry I'm not a javascript expert, so I tried to reproduce something like @DmitrySharabin on this codepen
but it stills doesn't work...
I'm I missing something like
<slot>
=> Beyond my question, I would like your opinion on the feasibility of the concept of including external html blocks with properties described in these external blocks, simply with mavo
or if you think, to deal with this point, that we should go for a server side template engine, or use Mavo-SSR
Thanks for your help and comments
Beta Was this translation helpful? Give feedback.
All reactions