plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

Include CSS resources in HEAD? #518

Open jean opened 10 years ago

jean commented 10 years ago

When generating PDF from Plomino forms, it can be a pain to get links to stylesheets to work. E.g. during generation wkhtmltopdf would make anonymous requests for linked resources.

Proposal: for CSS resource lines that start with inline: the referenced resource is rendered as a STYLE tag.

So for a specification such as:

something.css
inline:another.css

we would get:

<link rel="stylesheet" href="...something.css" />
<span>
h1 {...} /* style from another.css
</span>

Does this sound good?

ebrehault commented 10 years ago

yes, very good