#74: Add an attribute to declare a "just once" flag
---------------------------+------------------------------------------------
Reporter: louis.dejardin | Owner:
Type: enhancement | Status: new
Priority: major | Component: Spark Core
Keywords: |
---------------------------+------------------------------------------------
I noticed a few times I've had to declare a variable, and add a test, and
then set the variable, when I had an element or piece of content I only
wanted to be included one time.
Something like <script type="text/javascript"
src="~/content/js/jquery-1.2.6.js" once="jquery"/> could be put several
places. Or there could be a partial used many times that has a script or
inline stylesheet that should only be on the page at most one time.
Or maybe ifonce="name"... Nah I think once="name" would be fine.
--
Ticket URL: <
http://dev.dejardin.org/trac/spark/ticket/74>
Spark View Engine <
http://dev.dejardin.org/trac/spark>
Spark View Engine