chclock / knight

a web html template for scheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

a web html template for scheme

License:MIT License


Languages

Language:Scheme 100.0%