You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# STEVE
2
2
3
-
### Last Modified: 11/23/2023
3
+
### Last Modified: 11/18/2024
4
4
5
5
## Template Engine:
6
6
Any file can be processed by `STEVE`. All it uses is `<steve> // javascript code here </steve>` to create a block that can be ran. Anything returned will be rendered. For example...
@@ -27,23 +27,23 @@ Any file can be processed by `STEVE`. All it uses is `<steve> // javascript code
27
27
</ul>
28
28
```
29
29
30
-
These JavaScript blocks also have access to a global `STEVE` object that includes some methods to add outside code in the file. The `STEVE` object has these methods/variables:
30
+
These JavaScript blocks also have access to a global `steve` object that includes some methods to add outside code in the file. The `steve` object has these methods/variables:
31
31
-`data`: The data provided from the function who is rendering the file
32
32
-`include(file, data)`: Loads the file from the `includeDirectory` with the data provided.
33
33
34
-
To create a engine, use the `STEVE` object in NodeJS...
Sometimes, you might want to add NodeJS modules into a `STEVEPlugin`. By default, there are no modules, but you can add modules to be used in the `augment` using the `globalModules` variable. Just add a module by using it like an object. For example...
122
+
Sometimes, you might want to add modules into a `STEVEPlugin`. By default, there are no modules, but you can add modules to be used in the `augment` using the `globalModules` variable. Just add a module by using it like an object. For example...
123
123
124
124
```javascript
125
125
...
@@ -334,7 +334,4 @@ Here are the options for a `Generator`:
334
334
- `isFile`: boolean to determine whether `render` is a path or raw string
0 commit comments