--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitrogenweb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nitrogenweb/ce872491-92f6-46b8-bf0c-4f57d14abdb4%40www.fastmail.com.
Hey Allan,This is a situation where I probably would create new elements, however you can use some trickery to minimize the number of copied modules.The #h1, #h2, etc elements all use the element_h.erl module:If you're interested in adding this elements as built-in nitrogen elements, I'm comfortable merging in a PR that defines that.Does that point you in a workable direction?-Jesse
On Mon, May 31, 2021, 1:20 PM Allan Streib <ast...@fastmail.fm> wrote:
--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitrogenweb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nitrogenweb/a8656339-25da-4cee-9253-aa6a95b21d2d%40www.fastmail.com.
Hey Allan,
Excellent!My only real concern for prime-time is: Is that level of verbosity acceptable?<DD> is a *lot* shorter than #dlistitem{type=definition}What if it was something like:#dlist{body=[#dterm{...},#ddesc{...}]}.Or, it could very well be this:#dlist{body=[#dlistitem{term="Some Term", description="some Description"}]}.Leaving either term or description out would simply not render the respective dd or dt tag, but provide a simple mechanism to do the dt, dd pair together in a logical way.As I'd expect most situations to have a pair of <DT> and <DD> together, I'd probably lean toward the latter approach myself.What do you think?-JesseAlso, from what I've read, it looks like the term "definition" was replaced with "description" in the standard (or maybe I'm misremembering).