BigBlueHat / Spruce

templating language based on the CSS 3 syntax - Apache License 2.0
4 stars 1 forks source link

"Native" Spruce Functions #2

Open BigBlueHat opened 14 years ago

BigBlueHat commented 14 years ago

What functions should we make available for processing or generating values?

CSS 3's "Generated and Replaced Content Module" (still in draft) includes the use of a date(), counter(), attr(), pending(), rect() and inset-rect() (last two for image cropping).

Any and all of those would be useful in Spruce, and perhaps a few others.

BigBlueHat commented 14 years ago

More info from CSS 3's Values and Units" draft. It defines attr(), url(), counter(), and calc().