html
supercharge your css code with m4
css has vastly improved the quality of html markup on the web. however, given its complexity, it has some astounding deficiencies.
one of the biggest problems is the lack of constants. how many times have you wanted to code something like this? light_grey = #CCC. instead you are forced to repeat #CCC in your css. this quickly creates difficult-to-maintain and difficult-to-read code.
an elegant solution to the problem is to use a general purpose preprocessor like m4. m4 gives you a full range of preprocessing capability, from simple constants to sophisticated macros.
- john's blog
- 8 comments
- read more
- 1778 reads






