Re:Beautiful mini language for outputing HTML in Python
by prodigal_erik on Thursday December 31, 2009 @04:03AM
(#1024061)
Sorry, I misread the title "Beautiful mini language for outputing HTML in Python" as a DSL to be embedded in Python code rather than a separate text file (which is actually language agnostic after the preprocessor is done).
Re:Beautiful mini language for outputing HTML in Python
by showell on Thursday December 31, 2009 @06:38PM
(#1025204)
No worries. I am actually curious to your thoughts about DSLs. I love Python, but it is not really optimized for DSLs. You can obviously implement a DSL in Python, but embedding it is another story.
I do not know what your criteria are for judging a "first-class" DSL in Python, so I cannot comment on the feasibility. My goal was to create a simple markup language that maps well to HTML and plays nice with templates. SHPAML does that.