1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-01 12:43:07 +03:00
guide/templates/utils/space.widget
Artyom c72815c436 Big switch to Mustache (only half-done)
* Render some elements of some pages with Mustache
* Switch to Stack
* Add a bit of tests
* Turn the project into a library
2016-08-17 11:18:57 +03:00

14 lines
359 B
Plaintext

Description
============================================================
This is a <span> that has a certain width:
* {{> space px=30}} creates 30 pixels of space
* {{> space em=10}} creates 10 ems of space
HTML
============================================================
<span style="margin-left:{{#px}}{{.}}px{{/px}}{{#em}}{{.}}em{{/em}}"></span>