Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/9999years/caddy-jet
https://github.com/9999years/caddy-jet
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/9999years/caddy-jet
- Owner: 9999years
- License: apache-2.0
- Created: 2018-03-30T04:12:59.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2020-09-26T21:03:22.000Z (over 4 years ago)
- Last Synced: 2024-10-08T08:20:58.098Z (3 months ago)
- Language: Go
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Caddy Jet
[![Build Status](https://travis-ci.org/9999years/caddy-jet.svg?branch=master)](https://travis-ci.org/9999years/caddy-jet)
A [Caddy][caddyserver] plugin enabling support for the [Jet template
engine][jet] meant to provide functionality (namely template inheritance)
missing or difficult to use with Go/Caddy’s default
[`text/template`][text/template] package/directive. The usage is similar to the
default [templates][templates] directive:jet [path [extensions...]]
But the default extensions are `.jet` and `.html`.
This is a direct fork of Caddy’s `templates` directive.
# Roadmap
* Make the plugin work instead of crash horribly
* Block directive format.
* Custom file inclusions / exclusions by glob or regex.
* Some way to supply a custom context with a `fastcgi` proxy; this is out of
scope for now.[caddyserver]: https://github.com/mholt/caddy
[jet]: https://github.com/CloudyKit/jet
[text/template]: https://golang.org/pkg/text/template/
[templates]: https://caddyserver.com/docs/templates