# JSSTE ![npm](https://img.shields.io/npm/v/jsste) ![NPM](https://img.shields.io/npm/l/jsste) [![Downloads](https://img.shields.io/npm/dm/jsste)](https://www.npmjs.com/package/jsste) [![NPM](https://nodei.co/npm/jsste.png)](https://www.npmjs.com/package/jsste) ## Desciption JSSTE is a NodeJS-Module for rendering data in static HTML ## Usage ### Installation You can jsste install using [npm](https://www.npmjs.com/package/jsste) or [yarn](https://yarnpkg.com/package/jsste). ```sh npm install jsste ``` ```sh yarn add jsste ``` #### including in your project ```javascript const jsste = require("jsste"); ``` ### Rendering ```javascript jsste.render(pagecode, tempaltecode); ``` #### Example ```javascript const templatecode = ` JSSTE Example

<[VARNAME1]>

<[VARNAME2]>

`; const pagecode = { VARNAME1: "Hello World", VARNAME2: "This is a test" }; let result = Jsste.render(pagecode, templatecode); // result // // // JSSTE Example // // //

Hello World

//

This is a test

// // ``` ### Special Variables - `_TEMPLATE_` -> Defines the path to the temp file - `_STYLES_` -> Defines a list of CSS files that will be implemented #### Example ```javascript const templatecode = ` JSSTE Example

<[VARNAME1]>

<[VARNAME2]>

`; const pagecode = {"_STYLES_":["./main","./othercss"] "VARNAME1":"Hello World", "VARNAME2":"This is a test"}; let result = Jsste.render(pagecode, templatecode); // result // // // JSSTE Example // // // // //

Hello World

//

This is a test

// // ``` #### Examples on [https://github.com/lucaspalomodevelop/JSSTE-Examples](https://github.com/lucaspalomodevelop/JSSTE-Examples)