Skip to content

Commit 5a1eb25

Browse files
docs: added some concept processing instructions
I might implement these later, or not I have not decided yet.
1 parent cb0b7df commit 5a1eb25

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

docs/processing-instructions.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ An example is the processing instructions to change the [markup renderer](markup
2020

2121
Here follows a list off all possible instructions:
2222

23-
- `markup`: change the active markup renderer
23+
- [`markup`](#change-markup-renderer): change the active markup renderer
24+
- [`engine`](#engine-concept): checks if the compiler uses the same version for slyde.
25+
- [`include`](#include-concept): include files in the final build.
2426

2527
### Change Markup Renderer
2628

@@ -29,3 +31,30 @@ You can change the markup render to `XYZ` using:
2931
```XML
3032
<?slyde markup="XYZ"?>
3133
```
34+
35+
## Engine (concept)
36+
37+
> [!NOTE]
38+
> For now this is just a concept, I am not sure if it will make it into the final version.
39+
40+
Require a certain version for slyde to be. Works using semantic versioning.
41+
42+
```
43+
<?slyde engine="v1"?>
44+
<?slyde engine="v1.2"?>
45+
<?slyde engine="v1.2.3"?>
46+
```
47+
48+
## Include (concept)
49+
50+
> [!NOTE]
51+
> For now this is just a concept, I am not sure if it will make it into the final version.
52+
53+
You can include different files inside the final result. The parser is smart enough to know what type of content it is, and where to put it.
54+
55+
```XML
56+
<?slyde include="http://example.com/script.js"?>
57+
<?slyde include="./path/to/script.js"?>
58+
<?slyde include="http://example.com/style.css"?>
59+
<?slyde include="./path/to/style.css"?>
60+
```

0 commit comments

Comments
 (0)