Last active
July 13, 2019 08:56
-
-
Save marteinn/1971a9168f293d7c775434973c534b14 to your computer and use it in GitHub Desktop.
An example on how to use [hy](https://github.com/hylang/hy) with bottle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env hy | |
(import [bottle [route run template]]) | |
(with-decorator (route "/hello/<name>") | |
(defn index [name] | |
(template "<b>Hello {{name}}</b>!" :name name))) | |
(run :host "localhost" :port 8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment