caddy/modules
Tim Culverhouse 5fda9610f9
templates: Add 'import' action (#4321)
Related to (closed) Issue #2094 on template inheritance. This PR adds a new function called "import" which works like "include", except it only takes one argument and passes it to the referenced file to be used as "." in that file.

* Update tplcontext.go

Add {{ render "/path/to/file.ext" $data }} via funcRender

* Update tplcontext.go

* Refactor funcInclude, add funcImport to enable {{block}} and {{template}}

* Fix funcImport return of nil showing up in html

* Update godocs for  and
2021-09-17 13:00:36 -06:00
..
caddyhttp templates: Add 'import' action (#4321) 2021-09-17 13:00:36 -06:00
caddypki acmeserver: Don't set host for directory links by default 2021-07-01 17:20:51 -06:00
caddytls caddytls: Remove "IssuerRaw" field 2021-06-25 11:29:56 -06:00
filestorage httpcaddyfile: Minor fixes to parsing storage options 2020-05-01 09:34:32 -06:00
logging logging: Warn for deprecated single_field encoder 2021-08-17 10:51:26 -06:00
metrics metrics: allow disabling OpenMetrics negotiation (#3944) 2020-12-30 11:44:02 -07:00
standard metrics: Initial integration of Prometheus metrics (#3709) 2020-09-17 12:01:20 -06:00