Closed cossssmin closed 3 years ago
Would be awesome if we could take attributes on the <module> tag and pass them into the module's locals.
<module>
locals
Of course, this would need to skip the <module>, href="" and locals="" attributes.
href=""
locals=""
<div class="{{ class }}" id="{{ id }}" style="{{ style }}"> <content></content> </div>
<module href="module.html" class="text-center uppercase" id="example" style="display: flex; gap: 2;" > Module content </module>
Module's locals would be:
{ class: 'text-center uppercase', id: 'example' }
Compiled HTML would be:
<div class="text-center uppercase" id="example" style="display: flex; gap: 2;"> Module content </div>
Would be awesome if we could take attributes on the
<module>
tag and pass them into the module'slocals
.Of course, this would need to skip the
<module>
,href=""
andlocals=""
attributes.Define module.html
Use it
Result
Module's
locals
would be:Compiled HTML would be: