An open API service indexing awesome lists of open source software.

https://github.com/dacap/htex

hypertext extruder
https://github.com/dacap/htex

Last synced: 4 months ago
JSON representation

hypertext extruder

Awesome Lists containing this project

README

          

# htex - hypertext extruder

[![MIT Licensed](https://img.shields.io/badge/license-MIT-blue.svg)](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).