Fork me on GitHub
#yada
<
2017-02-14
>
danielcompton01:02:49

@malcolmsparks you talk about postwalking the route tree in the docs, e.g. for security, is there an example somewhere I could look at?

vinnyataide21:02:31

am I missing something? My page is blank

(def main-page
  (html5 {:lang "pt-br"}
         [:head [:title "teste"]]
         [:body {}
          [:div#app]
          (include-js "js/app.js")]))

(def routes
  ["/" {""    (y/handler {:methods
                          {:get
                           {:produces "text/html"
                            :response main-page}}})
        ;"js/" (new-classpath-resource "target/js")
        }])

vinnyataide21:02:59

not even the div is rendering