4 ms·
One advantage of this not really covered in the comments so far is that something like CoffeeKup makes it very easy to mix custom code with html generation. As
by sgentle 14y ago
One advantage of this not really covered in the comments so far is that something like CoffeeKup makes it very easy to mix custom code with html generation.
As an example, I'm currently using CoffeeKup as part of a build system for single-page websites. I wanted fine-grained control over things like whether to inline or reference external scripts and be able to defer non-essential chunks of markup until after page load.
It's nice to be able to take something like this:
body ->
div ->
p -> "some text here"
And make it this:
body ->
defer ->
div ->
p -> "some text here"
I'm not sure CoffeeKup would necessarily be the best choice if you're just looking for a generic template language, but I found it useful in my case.