Git Product home page Git Product logo

Comments (3)

nruth avatar nruth commented on August 16, 2024

It looks like this isn't supported and I'm not going to be able to implement it so closing.

from cells.

apotonick avatar apotonick commented on August 16, 2024

It is possible by include Cell::Haml into your cell class. The only problem is that cells-rails might get in your way here because of our automatic behavior: https://github.com/trailblazer/cells-rails/blob/master/lib/cell/railtie.rb#L63 I am strongly voting for deprecating this in favor of Application::Cell where you have to do this manually, or some more explicit mechnism.

from cells.

nruth avatar nruth commented on August 16, 2024

Thanks for looking at this. It is a (legacy) rails app so that railtie behaviour looks like it's probably the cause.

My class definition was like this:

module Dashboard
  module Cell
    class Topics < Trailblazer::Cell
      include ::Cell::Erb

    ... bunch of refactored methods
    end
  end
end

Removing the ham(lit) gem made it render the erb template but I didn't have success overriding the options or suffix methods/properties in my cell.

I'm subclassing Trailblazer::Cell because I wanted to use the not-deprecated file paths described in http://trailblazer.to/gems/cells/trailblazer.html

I got round this by just not mixing template types, but an explicit mechanism for this sounds good.

from cells.

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.