Fork me on GitHub
#hoplon
<
2017-04-25
>
wizmer18:04:22

I have a Django templates (the above snippet) that extends another template (the main/base.html). And I'd like to insert the content of my cljs.hl file in the block. The idea behind it would be to have a "dev" task where I could develop my content in the cljs.hl file as a standalone webpage served by "boot serve" (and without dealing with Django at all). And when I would be happy with it, I would run a "django" task that would export this content and generate the template file that should be used in production.

alandipert18:04:56

@wizmer do you need the cljs.hl content to be added statically?

alandipert18:04:05

ie 'prerendered'

wizmer18:04:27

Not really

alandipert18:04:37

or is your intent that, when the browser loads the page generated by django, the hoplon content appears via JS

wizmer18:04:35

the hoplon content could be added through JS

wizmer18:04:46

but the problem I have is that Hoplon will generate a full page

wizmer18:04:57

ie, with <DOCTYPE...> and all

wizmer18:04:22

and I need to generate a kind of HTML fragment

alandipert19:04:18

i have an example laying around that might be helpful, let me look

wizmer19:04:00

Great ! That's exactly what I was looking for !