UNPKG

wml-scaffold

Version:

Generate file and folder structure from wml file

106 lines (79 loc) 2.4 kB
default: div title: is: h2 data: Lorem ipsum subtitle: is: h3 data: Dolor sit amet icon: is: span data: facebook html: '<wml-tag element="{{ name }}" data-icon="{{ data }}"></wml-tag>' cta: is: a data: "{title:'Action', url:'#'}" html: '<wml-tag element="cta" href="{{ props.url }}" target="{{ item.target|default }}" rel="{% if item.target|default == ''_blank'' %}noreferrer noopener{% endif %}">{{ props.title }}</wml-tag>' media: is: media data: "{image:'/tmp/placeholder.jpg', video:'/tmp/placeholder.mp4'}" html: '<media image="{{ props.image }}" video={{ props.video }}></media>' date: time image: is: div innerHtml: '{{ props.image|picture(800,600) }} ' data: "/tmp/placeholder.jpg" control: "{type: 'file', accept: '.png,.jpg,.gif'}" background: is: div innerHtml: '{{ props.image|picture(800,600) }}' data: "/tmp/placeholder.jpg" control: "{type: 'file', accept: '.png,.jpg,.gif'}" article: article close: is: button data: false innerHtml: "{{ __('Close') }}" scroll_down: is: button data: false innerHtml: "" download: button next: is: button data: false previous: is: button data: false button: button header: header footer: footer grid: section project: article link: data: '#' html: '<a element="{{ name }}" href="{{ props.link }}">{{ props.title }}</a>' number: data: 85 control: "{type: 'number', min:1, max:85, step: 2}" category: data: 'My category' name: data: 'Simon' job: data: 'Architect' address: data: '22 boulevard Stalingrad<br/>Nice' phone: data: '+33 00 11 22 33 44' mail: data: 'no-reply@dev.fr' video: is: div data: "'/tmp/placeholder.mp4'" innerHtml: '<video><source src="{{ data }}"/></video>' wysiwyg: is: div data: '<h2>Lorem Ipsum</h2><h3>dolor sit amet</h3><h4>consectetur adipiscing</h4><p>Fusce fermentum <b>metus neque</b>, eu <i>euismod risus</i> lacinia sed. Pellentesque ac ipsum at enim euismod tempor. In sem odio</p><p>vehicula at facilisis id, viverra nec risus. Sed facilisis diam nec lorem pulvinar, a porttitor justo molestie. Etiam non cursus ligula.</p>' text: is: p data: 'Fusce fermentum metus neque, eu euismod risus lacinia sed. Pellentesque ac ipsum at enim euismod tempor. In sem odio<br/>vehicula at facilisis id, viverra nec risus. Sed facilisis diam nec lorem pulvinar, a porttitor justo molestie. Etiam non cursus ligula.'