Re:More, a CSS compiler
by SquareWheel on Wednesday May 09, 2012 @09:33AM
(#3948430)
By augmenting CSS with PHP, do you mean something like this?
And then just setting .htaccess (or whatever) to allow PHP execution in .css files?
[ Parent
| on HN ]
You can just process main.css.php (or whatever)
Here's some of my (old crappy)code:
color: <?php echo $foreground1; ?>;
font-family: <?php echo $font2; ?>;
But I'm sure there's libs out there that make it really easy and pretty.