| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /* Mask Syntax Demo */
- div > ' Test ~[name]';
- define :userProfile {
- header {
- h4 > @title;
- button.close;
- }
- }
- :userProfile {
- @title > ' Hello ~[: username.toUpperCase()]'
- }
- style {
- html, body {
- background: url('name.png') 0 0 no-repeat;
- }
- }
- button {
- event click (e) {
- this.textContent = `name ${e.clientX} !`;
- }
- }
- md > """
- - div
- - span
-
- Hello
- [one](http://google.com)
- """;
- header .foo > 'Heading'
- button .baz x-signal='click: test' disabled > "
- Hello,
- world
- \"Buddy\"
- "
- var a = {
- name: `name ${window.innerWidth}`
- };
- span .foo > "~[bind: a.name]"
|