progressively-enhance-web-components
Version:
🕸️ Template file preprocessor for progressively enhancing web components.
22 lines (21 loc) • 736 B
HTML
<include src="layouts/main">
<arg pageContent>
<p>page with a form</p>
<form action="/pageWithForm" method="post">
<dl>
<dt><label for="your_name">Your name:</label></dt>
<dd><input type="text" name="your_name" id="your_name" value=""></dd>
<dt><label for="story">Tell me a story:</label></dt>
<dd>
<word-count text="Once upon a time... " elId="story">
<p slot="description">Type your story in the box above!</p>
</word-count>
</dd>
</dl>
<menu>
<li><button type="submit" name="button1">Button 1</button></li>
<li><button type="submit" name="button2">Button 2</button></li>
</menu>
</form>
</arg>
</include>