change readme.md

This commit is contained in:
lucaspalomodevelop 2021-05-27 18:31:54 +02:00
parent 4a5e1b679c
commit 637ca72f9c

View File

@ -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