Comments (5)
My bad. I wasn't aware of handlebars whitespace control facilities - so I just steamrolled everything... I will try to get a fix in soon.
from dr-svg-sprites.
I'm not sure that my approach was the best one. An alternative is to add a handlebars macro for adding a newline marker, then process everything, remove any duplicate newlines, and then turn the markers into newlines. This might make the template files easier to read, but allow full control.
Thank you for all you've done with this package.
from dr-svg-sprites.
Can I just say, you guys are awesome. And thank you for building this. @jraller @rasmusfl0e
from dr-svg-sprites.
@jraller the attempt at whitespace control was merely to avoid OCD from kicking off too violently. Double newlines between rules is ok with me. I'm presuming people are minifying their output at some point anyways :)
@tiffanytse Thanks! Much appreciated :)
from dr-svg-sprites.
@rasmusfl0e @jraller, no need for a handlebars helper, it's built in (just need's tilde's wrapping it ~
):
{{~#if ../../../config/cssIncludeElementSizes}}
width: {{unit width ../../this.scale}};
height: {{unit height ../../this.scale}};
{{~/if}}
from dr-svg-sprites.
Related Issues (20)
- Sample SVG files HOT 3
- Mobile Safari iOS canvas size limitation / icons not showing HOT 2
- css unit precision HOT 2
- Add em unit in cssUnit HOT 3
- Add support for svgo options HOT 3
- Unable to use svgo plugins HOT 5
- Installation issue HOT 4
- Why an hour for other suddenly fails? HOT 8
- How to handle states like :hover or :active? HOT 7
- Not sure why layout isn't working HOT 1
- Fatal error: Cannot read property '1' of undefined
- SASS/SCSS Placeholders
- [feature] Support data-uri for preprocessors like sass and less HOT 4
- Error from svg2png HOT 4
- ID clobbering problem HOT 1
- Issue with ordering of icons in sprite HOT 8
- Svg url ramdom param HOT 2
- Gulp version HOT 1
- Custom path HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dr-svg-sprites.