Coder Social home page Coder Social logo

template blank lines about dr-svg-sprites HOT 5 CLOSED

drdk avatar drdk commented on July 26, 2024
template blank lines

from dr-svg-sprites.

Comments (5)

phloe avatar phloe commented on July 26, 2024

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.

jraller avatar jraller commented on July 26, 2024

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.

tiffanytse avatar tiffanytse commented on July 26, 2024

Can I just say, you guys are awesome. And thank you for building this. @jraller @rasmusfl0e

from dr-svg-sprites.

phloe avatar phloe commented on July 26, 2024

@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.

brianfeister avatar brianfeister commented on July 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.