how to share selector-transformation pairs between templates?

27 views
Skip to first unread message

xavi

unread,
Apr 19, 2013, 5:08:23 PM4/19/13
to enliv...@googlegroups.com
Hello,

When there are several templates that have to apply the same selector-transformation pairs to the whole page, how to avoid repeating the code for each template?
Ex. in the "deftemplate layout" and "deftemplate admin-layout" of the code linked below, the last three selector-transformation pairs of each template apply to any element of the page with certain attributes (the three are part of some i18n functionality)...


How to avoid this type of repetition?

Thanks in advance,

Xavi

xavi

unread,
Apr 20, 2013, 3:21:36 AM4/20/13
to enliv...@googlegroups.com
Replying to myself...
I don't have time to check it right now, but it seems the key may be in the 'transformation' macro...

https://groups.google.com/d/msg/enlive-clj/ReDmT1Hsa9s/lQbTyEKgAeoJ
Reply all
Reply to author
Forward
0 new messages