builder.php



<section>
    <label>New Template HTML<br>
    <textarea id="newTemplateHtml" placeholder="paste template html here" rows="10" cols="70"></textarea>
    </label><br>
    <button onclick="Wyg.HtmlParser.useHtmlAsTemplate(document.getElementById('newTemplateHtml').value)">Use HTML as template</button>
    <button onclick="Wyg.oneDumbThing();">One Dumb Thing</button>
</section>


<h1>Control Panel</h1>
<section>
    <div id="staticControls"></div>
    <div id="nodeControls"></div>
</section>

<h1>Drag &amp; Drop editor</h1>
<section>
    <h1 id="templateName1">{{template name}}</h1>
    <div id="dragAndDropEditor"></div>

</section>

<h1>Final Output Html</h1>

<section>
    <h1 id="templateName2">{{template name}}</h1>
    <div id="finalOutput"></div>

</section>






<hr>
<br><br><br>
<br><br><br>

<hr><hr><hr>



<div><h3>Input</h3>

{{TemplateName=Blank Form}}
    {{Form Name=My Favorite Form}}
    <form method="{{Method:[POST,GET]=POST}}" action="{{Submission Url:url}}">
    <fieldset>
        <legend>{{Form Name}}</legend><br>
        <label>{{Input Title}}<br>
            <input type="{{Input Type:[](input_type)=text}}" placeholder="{{Input Hint}}" />
        </label><br>
        {{Add To Form:children(form)}}<br>
        {{Add To Form 2:children}}
    </fieldset>
    </form>

</div>