src/templates/semantic/input.js
export default {
form: `
<div class="ui {{component.editor ? '' : 'input'}} fluid {{ component.suffix ? ' right' : '' }}{{ (component.prefix || component.suffix) ? ' labeled' : '' }}">
{% if (component.prefix) { %}
<label class="ui label" ref="prefix">{{component.prefix}}</label>
{% } %}
<{{input.type}}
ref="{{input.ref ? input.ref : 'input'}}"
{% for (var attr in input.attr) { %}
{{attr}}="{{input.attr[attr]}}"
{% } %}
>{{input.content}}</{{input.type}}>
{% if (self.hasCounter) { %}
<span class="ui right floated" ref="counter"></span>
{% } %}
{% if (component.suffix) { %}
<div class="ui label" ref="suffix">{{component.suffix}}</div>
{% } %}
</div>
`,
html: '<div ref="value">{% if (value) { %}{{value}}{% } else { %}-{% } %}</div>'
};