User Tools

Site Tools

Template Code Formatting

A loose list of code formatting examples, including standard JavaScript and such stuff.

Note: not sure whether this is a good place. It might be better to move these snippets into data specific places, like Dealing With Prices.

Price Input Fields

<input type="text"
    id="my_id"
    name="my_name"
    class="my_class my_other_class"
    value="{priceDisplayValue price=$price"
    onkeyup="if (isArrowKey(event)) return;
             this.value = this.value.replace(/,/g, '.');"
/>
template_code_formatting.txt ยท Last modified: 2019/03/12 13:07 by Traumflug