https://github.com/dacap/htex
hypertext extruder
https://github.com/dacap/htex
Last synced: 4 months ago
JSON representation
hypertext extruder
- Host: GitHub
- URL: https://github.com/dacap/htex
- Owner: dacap
- License: mit
- Created: 2025-05-30T01:38:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-17T22:03:19.000Z (4 months ago)
- Last Synced: 2026-02-17T22:27:50.982Z (4 months ago)
- Language: Go
- Homepage: https://htex.dev
- Size: 30.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# htex - hypertext extruder
[](LICENSE.txt)
## introduction
An experimental tool which is:
* an HTML-extension to generate hypertext (new set of ``),
* a web server to publish static and dynamic content (`htex server`),
* a static site generator like jekyll or hugo (`htex gen`).
## quick start
Clone htex repository
git clone github.com/dacap/htex
and execute
cd htex
go run ./cmd/htex server
to run a local server (http://localhost:80) for the given
[`public` folder](public/) content.
You can modify the [`./public/index.htex` file](public/index.htex):
```html
sign in
Form received:
```
Files ending with `.htex` will create a route to access that URL path,
e.g. `public/hi.htex` will receive requests to `/hi/`, and the same if
you create `public/hi/index.htex`. Any other file will be served as
static content, and the user will not be able to download the source
of `.htex` files directly (not even using `/hi/index.htex` in the HTTP
request).
Hidden files and directories are not be published (returning 404
code), unless the file is inside the `.well-known` directory, which is
used for domains/certificate validations.
## docs
Go to [public/docs/docs/](public/docs/docs.md).