Created
June 28, 2016 06:58
-
-
Save jindrichmynarz/081d4282346d8750efc2b0a53ad4c989 to your computer and use it in GitHub Desktop.
Generating SPARQL: templating
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
| (ns generating-sparql.templating | |
| (:require [generating-sparql.data :as data] | |
| [stencil.core :refer [render-file]])) | |
| (defn query | |
| [properties limit offset] | |
| (render-file "query.mustache" {:properties properties | |
| :limit limit | |
| :offset offset})) | |
| #_(println (query data/properties data/limit data/offset)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment