Coder Social home page Coder Social logo

Support for HAML templates about roadie HOT 8 CLOSED

mange avatar mange commented on August 30, 2024
Support for HAML templates

from roadie.

Comments (8)

Mange avatar Mange commented on August 30, 2024

Please provide more information. I have never used anything other than HAML for my templates, so the problem is most likely somewhere else. Also, which version of Rails are you using, and are you using the prerelease gem or the current stable version.

This could be a bug in Nokogiri, actually, since I'm just manipulating an HTML tree, not raw strings.

from roadie.

sethvargo avatar sethvargo commented on August 30, 2024

It occurs when using HAML layout templates, using yield for content rendering.

I'm using Rails 3.1, current (not pre) gem.

from roadie.

Mange avatar Mange commented on August 30, 2024

Sure, but I need a small reproducible test case to work with. This does not happen for me.

It would be best if you could drill it down to the basics, just a template, a view and a stylesheet that shows this problem and nothing else.

Also show me your Gemfile.lock so I can investigate if there's some conflict with another gem. Are you on Darwin, Linux or Windows, btw?

from roadie.

Mange avatar Mange commented on August 30, 2024

Until I get something to replicate, I'm going to close this issue.

from roadie.

apraditya avatar apraditya commented on August 30, 2024

Hi Mange, I have exactly same issue. You can use this gist to reproduce it. Appreciate your comments. Thanks!

from roadie.

Mange avatar Mange commented on August 30, 2024

Thanks for the data. I will reopen this and investigate when I get the time.

For now, my guess are the @media styles. Try to make those styles immutable since they are useless with roadie anyway and will be (at best) removed.

from roadie.

apraditya avatar apraditya commented on August 30, 2024

First of all, thanks a lot for the quick response. I tried removing all @media styles. It turns out this is a mailer issue instead. I removed   from the gist template and Roadie works as expected. You can close this ticket.

from roadie.

Mange avatar Mange commented on August 30, 2024

Glad it worked better for you :-)

from roadie.

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.