Open jmohler1970 opened 8 years ago
Question. Do we really want to pull from a CDN and cache it locally?
What you want is for all the <b:outputStyleSheet>
to queue up the content and write it as necessary. It needs to be smart enough to know that it has been written. Perhaps an application._bootstrap.outputStyleSheet = true;
flag. Then <b:head>
will add a link to the file cached version of the content. We need to document that this is for application wide style sheets. Some other day we will do page specific.
Mode 1
<b:outputStyleSheet />
Mode 2
<b:outputStyleSheet library="vendor" name="material.css" />
Mode 3
<b:outputStyleSheet > h1,h2 { padding-top: 50px; } </b:outputStyleSheet>
Test scenario will be a whole lot of Mode 2s
Mode 3 is good for isDebugMode()
Perhaps a good useage would be
<b:outputStyleSheet render="#isDebugMode()#">.debug { display : '' }</b:outputStyleSheet>
Don't forget to include <b:outputScript>
How about
Mode 4 src="http://cdn.somewhere"
On concatinate when then application is starting.
We also need to document how this working in simple capture content between tags mode