/knight

a web html template for scheme

Primary LanguageSchemeMIT LicenseMIT

knight

a html templating engine for scheme

#usage

  1. raven install knight

(import (knight knight))

(render "<%= hello %> -- <%- hello %> -- <%# note %>"
    '((hello . "<world>")))
;; or
(render-file "demo.html" '((hello . "<world>")))
  1. you can include file by

<% include "header.html" %> ;or
<% include "header" %> ;or
<% include header %>

  1. change default template suffix "ejs"

(set-template-suffix! suffix)

  1. change default template path "."

(set-template-path! path)