Skip to content

Instantly share code, notes, and snippets.

@jindrichmynarz
Created June 28, 2016 06:58
Show Gist options
  • Select an option

  • Save jindrichmynarz/081d4282346d8750efc2b0a53ad4c989 to your computer and use it in GitHub Desktop.

Select an option

Save jindrichmynarz/081d4282346d8750efc2b0a53ad4c989 to your computer and use it in GitHub Desktop.
Generating SPARQL: templating
(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