I’m looking to be able to create Clojure files looking like this:
(ns th.scratch.doc.doc1 (:require [th.scratch.doc.lib :refer [document h1 p]])) (document "My document") (p "An attempt to write things that naturally sequence") (h1 "What is natural sequencing?") (p "Natural sequencing is when the order of operations matter." "When you write a word document, this is typically the case.")
th.scratch.doc.lib just contains stubs. I’m looking to implement those.
I want to be able to organize the generated documents from the namespace in which they are created. In this case
th.scratch.doc.doc1. I’m thinking I might need macros and
*ns*, but I’m on thin ground, so I’m asking.
How would you enable
document and its likes to be organizable from the namespace in which they are used?
Looking forward to hear your opinions!