Skip to content

kapetacom/codegen-target-html

Repository files navigation

Kapeta Language Target static html

Provides Kapeta language support for static html

Will use ExpressJS as HTTP server.

This language target is only available for Service blocks.

To lean more about Kapeta, see https://kapeta.com or https://docs.kapeta.com

Project Structure

The structure of this language target is as follows:

src/web

Contains the browser-based source used by the Kapeta App when configuring the language target.

src/target

Contains the node-based source for generating code for this language target.

templates

Contains the templates used by the target to generate code. These are written using the Handlebars template language.

See https://github.com/kapetacom/codegen-target for more information about the template syntax.

Features

Note: In your block see the kapeta.md file for more information specifically about the code that is generated for your block.

Prettier

Adds prettier support - format your code using npm run format.

Changes and Suggestions

If you wish to change the templates or code being generated - consider either opening a PR to if you feel it could be universally beneficial or fork the project and make your own changes - which you can then publish to Kapeta as your own language target.

License

This project is licensed under the MIT License - see the LICENSE file for details