3 ms·
I think it rather depends on how homogeneous you plan on making the user interface to your web application. The more repetition in the design, the more you bene
by weavejester 15y ago
I think it rather depends on how homogeneous you plan on making the user interface to your web application. The more repetition in the design, the more you benefit from being able to factor it out into smaller components, and functions are obviously more suited to this than partials.
So if you're writing a web application with a small number of unique views that have been carefully constructed by a dedicated designer, then maybe Enlive is the better choice. But if you're designing a web application with many views that tend to share a lot of common traits, then by factoring out common UI elements into functions, you can often end up with a far smaller and cleaner view definition.