Giter Club home page Giter Club logo

Comments (3)

jdickey avatar jdickey commented on July 29, 2024

@croaky Have you seen html2fortitude? ISTR it needs a little cleanup, but I was able to get that working for a one-off conversion a couple of months ago.

That bit in Erector::Erect#to_html looks Useful; I've been futzing around with rails console, instantiating and calling #to_html on my own widgets manually, but that won't fly for everything (cough Rails action views cough). Thanks for pointing that out.

@ageweke, I haven't stumbled across anything that maps directly to what he's asking for on the Fortitude-to-HTML side; have I missed something or would bringing up a quick fortitude2html project based on that Erector code be worthwhile?

from fortitude.

croaky avatar croaky commented on July 29, 2024

Nice, thanks! I hadn't seen html2fortitude so thanks for pointing it out.

from fortitude.

ageweke avatar ageweke commented on July 29, 2024

@croaky, sorry that html2fortitude isn’t documented yet! As I push forward on Fortitude, that’s on my (long!) list of things to document.

@jdickey and @croaky, I’m not sure how a general-purpose .html.rb —> .html converter would work. If widgets have no needs and don’t use any helpers that require access to data, then, sure, it wouldn’t be too hard…but my gut says that this likely isn’t a common case — since, if what you have is effectively static HTML, why not just write it as static HTML in the first place?

(I recognize the irony in this, in that I’m writing Fortitude’s docs exactly as Fortitude widgets that create static HTML. They’re getting built using Middleman, which can also be seen as a tool that does exactly that: bulk conversion of .html.rb (and .html.erb, and so on) to HTML, in a controlled manner.)

If you have a specific, reasonably-common use case in mind for .html.rb —> .html, I’d be more than happy to give it a shot — I’m just not sure enough exactly what that is yet in order to feel like I could do a good job on it.

Thanks!
Andrew

from fortitude.

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.