diff --git a/index.html b/index.html index 64a7656..a75c5b3 100644 --- a/index.html +++ b/index.html @@ -186,12 +186,12 @@ li Item li Item li Item

Imports

An import makes it possible to call a Slab file as if it was a fragment. Its body is the content of the file. As with fragments, it is possible to pass fragments as arguments.

Assuming a file called aux-imported.slab with the following content:

div
-  default name
+  default first
 div
-  default content

It can be called as a fragment:

import aux-imported.slab
-  frag name
+  default second

It can be called as a fragment:

import aux-imported.slab
+  frag first
     h1 A title
-  frag content
+  frag second
     p A paragraph.
<div>
     <h1>
         A title