| title | template |
|---|---|
Cool document |
coolPage.ori |
This document is so cool that it specifies its own template.
| title | template |
|---|---|
Cool document |
coolPage.ori |
This document is so cool that it specifies its own template.
| (document) => `<html> | |
| <head> | |
| <title>${ document/title }</title> | |
| </head> | |
| <body> | |
| <h1>COOL PAGE</h1> | |
| ${ document/@text } | |
| </body> | |
| </html>` |
| (document) => .(document/template)(document) |
To run: