1.0.0 • Published 3 years ago

aerotemplate v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

Aerotemplate

A simple, intuitive and integrated web framework, written in TypeScript.

Aerotemplate offers a simple way to ingretate components in a non-direct way to the HTML, is so simple to import the module in a JS or TS file and then execute it, it will generate an HTML output.

Example usage

(index.js)

const aerotemplate = require('aerotemplate')

aerotemplate.render(`
<h1> Hey! </h1>
`)

With components

(index.js)

const aerotemplate = require('aerotemplate')
const onecomponent = require('./component')

aerotemplate.render(`
${onecomponent}
`)

(component.js)

var string = '<p> Hey, this is a cool component here! </p>'

module.exports = string