jmohler1970 / BS-4-CF

Bootstrap tags for Adobe ColdFusion
MIT License
2 stars 2 forks source link

<b:outputStyleSheet> needs smartitude #102

Open jmohler1970 opened 8 years ago

jmohler1970 commented 8 years ago

should be doing things like concatinating the style sheets. it should then be passed off the to actually render.

On concatinate when then application is starting.

We also need to document how this working in simple capture content between tags mode

jmohler1970 commented 8 years ago

Question. Do we really want to pull from a CDN and cache it locally?

jmohler1970 commented 8 years ago

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>

jmohler1970 commented 8 years ago

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>

jmohler1970 commented 8 years ago

Don't forget to include <b:outputScript>

jmohler1970 commented 8 years ago

How about

Mode 4 src="http://cdn.somewhere"