Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

<b:outputStyleSheet> needs smartitude #102

Open
jmohler1970 opened this issue Feb 10, 2016 · 5 comments
Open

<b:outputStyleSheet> needs smartitude #102

jmohler1970 opened this issue Feb 10, 2016 · 5 comments
Assignees
Milestone

Comments

@jmohler1970
Copy link
Owner

<b:outputStyleSheet> should be doing things like concatinating the style sheets. it should then be passed off the <b:head> 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 jmohler1970 self-assigned this Feb 10, 2016
@jmohler1970 jmohler1970 added this to the AJAX & Arrays milestone Feb 10, 2016
@jmohler1970
Copy link
Owner Author

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

@jmohler1970
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

Don't forget to include <b:outputScript>

@jmohler1970
Copy link
Owner Author

How about

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant