A build-time fast af tool to write static apps with html and TypeScript
- Template-based
- ESLint, Prettier and BunJS integration
- No extra runtime code in your aplication
- TypeScript support by default (with bun)
- No runtime dependencies
Requirements:
Run cargo install --git https://github.com/Brian3647/encoped
and you're done! You can use the CLI running encoped
.
Encoped will look for files in ./public/**/*.html
replacing the following syntax:
{{ templates::template_name }}
Where template_name
is any html file in ./templates
.
for example, {{ templates::hello/world }}
will be replaced with the contents of ./templates/hello/world.html
USAGE:
encoped <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
build Builds the project
help Prints this message or the help of the given subcommand(s)
new Creates a new project
watch ReBuilds on file change
You can also run encoped help [subcommand]
to get more information about a subcommand.