Add new word to http.server.templating
parent
d1b70d8b13
commit
48b35f0417
|
@ -81,5 +81,9 @@ DEFER: <% delimiter
|
||||||
] with-scope
|
] with-scope
|
||||||
] assert-depth drop ;
|
] assert-depth drop ;
|
||||||
|
|
||||||
|
: run-relative-template-file ( filename -- )
|
||||||
|
file get source-file-path parent-dir
|
||||||
|
swap path+ run-template-file ;
|
||||||
|
|
||||||
: template-convert ( infile outfile -- )
|
: template-convert ( infile outfile -- )
|
||||||
<file-writer> [ run-template-file ] with-stream ;
|
<file-writer> [ run-template-file ] with-stream ;
|
||||||
|
|
Loading…
Reference in New Issue