~subsetpark/bagatto

e7ae25e10ba034e64eb7687f5606a0255dbe62ad — Zach Smith 9 months ago f6126c8 v0.0.1
[demo] make include into function call
3 files changed, 3 insertions(+), 2 deletions(-)

M bagatto.janet
M demo/templates/base_bottom.temple
M demo/templates/post.temple
M bagatto.janet => bagatto.janet +1 -0
@@ 15,6 15,7 @@
  (let [error-context (dyn :error-context)
        updated (merge error-context @{k v})]
    (setdyn :error-context updated)))

#
# API
#

M demo/templates/base_bottom.temple => demo/templates/base_bottom.temple +1 -1
@@ 1,6 1,6 @@
        </div>
{$ (import hypertext) $}
{% (def dest (path/join (args :root) index-path)) %}
{% (print (hypertext/markup (li (a :href dest "All posts")))) %}
{% (print (hypertext/markup (a :href dest "All posts"))) %}
  </body>
</html>

M demo/templates/post.temple => demo/templates/post.temple +1 -1
@@ 6,4 6,4 @@
      </p>
      {- (bagatto/mmarkdown->html (get-in args [:_item :contents])) -}

{% bagatto/include "templates/base_bottom" %}
{% (bagatto/include "templates/base_bottom") %}