mirror of
https://github.com/lucaspalomodevelop/JSSTE.git
synced 2026-03-12 23:17:22 +00:00
change readme.md
This commit is contained in:
parent
4a5e1b679c
commit
637ca72f9c
35
README.md
35
README.md
@ -8,9 +8,10 @@ JSTE is a NodeJS-Module for rendering data in static HTML
|
||||
|
||||
```json
|
||||
{
|
||||
"_STYLES_":["Example1","Example2"],
|
||||
"_TEMPLATE_":"firstexample",
|
||||
"TITLE": "app2",
|
||||
"LINK":"http://www.google.de"
|
||||
"LINK":"http://www.example.de"
|
||||
}
|
||||
```
|
||||
|
||||
@ -28,13 +29,39 @@ JSTE is a NodeJS-Module for rendering data in static HTML
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<a id="googlelink"><[LINK]></a>
|
||||
<a id="googlelink" href="<[LINK]>"><[LINK]></a>
|
||||
</div>
|
||||
<[[ARRAY]]>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
```
|
||||
|
||||
## Result (HTML)
|
||||
|
||||
``` html
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>app2</title>
|
||||
|
||||
<link href="Example1.css" rel="stylesheet"></link>
|
||||
<link href="Example2.css" rel="stylesheet"></link>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<a id="googlelink" href="http://www.example.de">http://www.example.de</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
```
|
||||
|
||||
## special constants:
|
||||
- ```_TEMPLATE_``` -> Defines the path to the temp file
|
||||
- ```_TEMPLATE_``` -> Defines the path to the temp file
|
||||
- ```_STYLES_``` -> Defines a list of CSS files that will be implemented
|
||||
Loading…
x
Reference in New Issue
Block a user