--- id: type: 'string' class: type: 'string' default: '' placeholder: type: 'string' default: '' required: type: 'bool' default: false autofocus: type: 'bool' default: false minlength: type: 'integer' default: 0 maxlength: type: 'integer' default: 1024 name: type: 'string' default: '' attributes: type: 'string' default: '' --- {%- capture number_attributes -%} inputmode="numeric" pattern="[0-9]*" {%- endcapture -%} {%- assign attributes = attributes | append: ' ' | append: number_attributes -%} {% render 'forms/text.html', id:, class:, placeholder:, required:, autofocus:, name:, placeholder:, minlength:, maxlength:, attributes: %}