Styled component output as a CSS file - styled-components

Currently Styled component appends CSS data to a HTML template. Is there a way to generate CSS file from styled component? So that I can that CSS file link to whenever I need it

Related

Including another Pug view fails

I have three Pug files in a Node.js/Express application which follows the following layout:
//layout.pug
html
head
title= title
link(rel="stylesheet", href="link")
script(src="links")
// many css and javascript imports
body
header
// header section
block content
footer
// footer section
// more script imports
//index.pug
extends layout
block content
//some content
include slider
//slide.pug
div(class="xxx")
//slider contents
The include keyword actually works here and it renders the slider.pug but the problem I'm facing is that it does not render the slider.pug page as expected. The slider page is rendered in a way that it does not load required styles and javascript files so the result is a messed up html inside a nicely rendered one (index.pug in this case is the nicely rendered one).
I've tried adding the extend layout line to the slider.pug but it also failed.
What is the appropriate way to include a pug file that is meant to rely on the resources included in the layout page such as css and javascript inside another pug file?

how to use luma theme css class files in my frontend module

i am developing sample frontend modules in magento 2.using default luma theme.I want to know how to set luma css styles to my custom .phtml file.i mean where i can find these css class file
Less files for specific theme and module should be placed in \app\design\frontend\\\_\web\css\source
This doc can be useful:
http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/debug-theme.html#debug-theme-style

Insert Polymer elements and scripts in a .Jade file

I don't know how to insert Polymer tags and UI components to Jade file, how to render it, or how to add the necessary script on the site. Can you help me with that?
Load up webcomponents polyfills
script(src="bower_components/webcomponentsjs/webcomponents.js")
Import Polymer and the element you want to use.
link(rel="import" href="../bower_components/polymer/polymer.html")
link(rel="import" href="bower_components/paper-button/paper-button.html")
Then create instances of it in your jade template.
paper-button() flat button
paper-button(raised) raised button
paper-button(noink) No ripple effect

Componentizing markup with relative js and css

I've been thinking of a way to include components of markup in a modular fashion. For example if I were to include a slider I would have to include the relevant css and JS for it to function correctly. Is there any known method of including these as one component?
<div> {{slider}} </div>
{{slider}} then would import slider.html, slider.css and slider.js but to their respective directories. css/slider.css and js/slider.js
Is this possible given our current array of production tools?

which pdf library supports SVG tag in ZF2

I have tried using 3 PDF libraries(ZendPdf, DomPDF and wkhtmltopdf) in Zend Framework 2 to generate PDF Reports. All of them can generate basic HTML to PDF but do not seem to support SVG tags. Text and styles are rendered but SVG element comes blank in PDF.
I am trying to generate PDF Report files for charts generated by ExtJs which uses SVG tags. I am able to render simple html tags like(P with css styles) but unable to render SVG tags. It comes blank for svg. It is unable to render svg tags but other text and html can be read and rendered.
Please suggest if there is any tweak or the libraries do not support SVG tags. If you need I can provide you Sample HTML to experiment.
Hence, the question remains the same:
Blockquote
Which pdf library supports SVG tag in ZF2 (Zend Framework 2) and how to do that(if possible, please provide example code)?
Blockquote
PHP wrapper for PD4ML should do the trick. Here is a list of supported SVG tags.

Resources