I'm trying to build my site with Html5Boilerplate and for the most parts it's going as I whish. However, I'm still unable to get the CSS reference to update in my PHP file.
My folder structure is as follows:
css/style.css
page/header.php
Now in the header.php file I have:
<!-- scripts concatenated and minified via ant build script-->
<link rel='stylesheet' href='css/style.css'/>
<!-- end scripts-->
I would expect the built header.php file to have the following:
<link rel='stylesheet' href='css/a4cd4c0.css'/>
But unfortunately it is not updating the reference.
In the project.properties file I have: file.pages = page/* and it is stripping the comments in the header.php file, so I know the build script doesn't skip the file.
I have tried variaties, like:
<!-- CSS concatenated and minified via ant build script-->
<link rel='stylesheet/css' type='text/css' href='css/style.css'/>
<!-- end CSS-->
But this hasn't done a thing either . . .
Is there anyone who has tried to update their CSS files with Html5Boilerplate in their PHP files? What could I try to get the reference to be updated by the build script? And my last question is: Could I let the build script update the reference, if I use the following line for including my CSS?
<link rel='stylesheet/css' type='text/css' href='<?PHP echo(CSS_PATH) ?>style.css'/>
EDIT: By fiddling around in the build.xml file, I have not only got it working, but also with my php echo. Around line 623 of the build.xml file I have changed the lines:
<replaceregexp match="<link rel=['"]?stylesheet['"]?\s+href=['"]?(.*)/${file.root.stylesheet}(?:\?.*)?['"]?\s*>"
replace="<link rel='stylesheet' href='\1/${css.sha}.css'>" flags="m">
to
<replaceregexp match="href=['"]?(.*\?>)${file.root.stylesheet}(?:\?.*)?['"]?"
replace="href='\1${css.sha}.css'" flags="m">
Hopefully this helps someone who is running to a similiar problem.