2021-08-07 15:43:09 +02:00
2021-05-24 10:47:26 +02:00
2021-08-07 15:39:13 +02:00
2021-08-07 15:39:13 +02:00
2021-04-20 16:38:11 +02:00
2021-08-07 15:39:13 +02:00
2021-04-20 17:25:45 +02:00
2021-08-07 15:43:09 +02:00
2021-08-07 15:39:13 +02:00

JSSTE

JSSTE is a NodeJS-Module for rendering data in static HTML

Example Page (JSON)

{
  "_STYLES_": ["Example1", "Example2"],
  "_TEMPLATE_": "firstexample",
  "TITLE": "app2",
  "LINK": "http://www.example.de"
}

Example Template (HTML)

<!DOCTYPE html>
<html lang="de">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><[TITLE]></title>
  </head>

  <body>
    <div id="app">
      <a id="googlelink" href="<[LINK]>"><[LINK]></a>
    </div>
  </body>
</html>

Result (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
  • _STYLES_ -> Defines a list of CSS files that will be implemented
Description
No description provided
Readme GPL-3.0 404 KiB
Languages
JavaScript 100%