Revision: Fri, 29 Mar 2024 18:33:27 GMT
v1.0 – outdated
This version of the documentation is outdated. Consider upgrading your project to Spiral Framework 3.12
Edit this page

Stempler Templates

Spiral ships with Stempler HTML markup processor. By default this engine is associated with '.dark.php' files and compatible with NativeView.

html
<extends:layouts.html5 title="[[Welcome To Spiral]]"/>

<define:body>
    <spiral:form action="/index/u">
        <form:input type="file" name="images[][image]"/>
        <form:input type="file" name="images[][image]"/>
        <form:input type="file" name="images[][image]"/>
        <form:input type="file" name="images[][image]"/>

        <input type="submit"/>
    </spiral:form>
</define:body>

You can read more of how to work with stempler here.