Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brian3647/encoped
The simplest build-time framework for writing web apps with html templates and typescript
https://github.com/brian3647/encoped
framework html js nodejs rust rust-lang ts typescript web webapp
Last synced: about 11 hours ago
JSON representation
The simplest build-time framework for writing web apps with html templates and typescript
- Host: GitHub
- URL: https://github.com/brian3647/encoped
- Owner: Brian3647
- License: gpl-3.0
- Created: 2021-12-11T12:42:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T10:51:54.000Z (about 1 year ago)
- Last Synced: 2024-04-24T03:38:04.864Z (7 months ago)
- Topics: framework, html, js, nodejs, rust, rust-lang, ts, typescript, web, webapp
- Language: Rust
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Encoped
A build-time _fast af_ tool to write static apps with html and TypeScript
## Features
- Template-based
- ESLint, Prettier and BunJS integration
- No extra runtime code in your aplication
- TypeScript support by default (with bun)
- No runtime dependencies## Install
Requirements:
- [Rust](http://rust-lang.org)
Run `cargo install --git https://github.com/Brian3647/encoped` and you're done! You can use the CLI running `encoped`.
## General Usage
Encoped will look for files in `./public/**/*.html` replacing the following syntax:
```html
{{ 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`
## CLI usage
```
USAGE:
encopedFLAGS:
-h, --help Prints help information
-V, --version Prints version informationSUBCOMMANDS:
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.