@from-static/generator-hello-world

1.0.3 • Public • Published

generator-hello-world

This is a basic example of a generator in the static Application Design Approach. A generator (static site generator) processes a static.json file and produces a static web page or dynamic web application.

By referencing this generator in a static.json file and providing a data.attributes.message value, the generator will produce a static web page with the provided data.attributes.message.

A template repository that references this generator can be found at: https://github.com/from-static/template-hello-world.

This template repository can be used to create custom distributions of the generator on GitHub Pages by only modifying the data.attributes.message value in the static.json file.

Example static.json File

{
    "_static": {
        "generator": {
            "name": "@from-static/generator-hello-world"
        }
    },
    "data": {
        "attributes": {
            "message": "Hello, @from-static!"
        }
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @from-static/generator-hello-world

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

2.14 kB

Total Files

3

Last publish

Collaborators

  • jbottigliero