Herb: Powerful and seamless HTML-aware ERB parsing and tooling

Herb: Powerful and seamless HTML-aware ERB parsing and tooling
> Configuring Zed editor to use HTML Beautifier as a formatter in ERB templates
Wrote a blog post for the first time in too long! Pleasantly surprised my Nix, Middleman, GitHub Pages toolchain is still working!
> How to configure Zed to use ERB Lint as a formatter:
https://jamesmead.org/blog/2025-03-30-configuring-zed-editor-to-use-erb-lint-as-formatter
Tänään sain luettua loppuun kaksi hyvin erilaista kirjaa. Edgar Rice Burroughsin Billy ja Etsivä on vanhanaikainen seikkailuromaani vanhanaikaisine asenteineen ja tämä suomennus myös vanhanaikaisella suomenkielellä. Joku viehätys näissä vanhoissa kirjoissa silti on. Kaiju preservation society puolestaan on hillittömän hauska versio usein turhan vakavasta hirviögenrestä. Tästä olisi kiva nähdä elokuva. #erb #billyjaetsivä #themucker #JohnScalzi #thekaijupreservationsociety
Phlex for Rails Emails: Action Mailer Without ERB — https://camillovisini.com/coding/phlex-for-rails-emails-action-mailer-without-erb
#HackerNews #Phlex #Rails #Emails #ActionMailer #ERB #Free #Coding
Can anyone recommend a way to automatically format the HTML in a Rails view template that uses ERB?
* prettier can format HTML, but messes up the contents of the ERB tags
* erb_lint can format the contents of the ERB tags and does _some_ limited formatting of the surrounding HTML
* there are a bunch of prettier extension node packages that claim to handle ERB, but as is all too often the case they all seem to be dead
Any advice would be much appreciated!
If you need to fix your sleep schedule: https://www.youtube.com/live/tNaF7e9XRYw #bloodflamelive #hololive #erb
Here's Theo, my first Ruby gem: https://github.com/loomchild/theo-rails
It's a small, HTML-like template language for Ruby on Rails, inspired by Vue.js, featuring natural partials and computed attributes.
Example:
<button-partial size="large" label%="label" />
Note: The code is experimental, but I am already using it in my personal projects.
What do you think?
#RubyOnRails #template #cagematch! Do you prefer #HAML or #Slim for new Rail 7.1+ apps? Either way, why?
I have a lot of experience with HAML, but historical benchmarks say its slower than Slim or #ERB. Linting HAML used to be painful, but more modern linters probably make that less of an issue.
What's the killer feature of your choice? How does the performance scale? What's the ease-of-use benefit over the others?
Maybe it's like #vim vs. #emacs, and YMMV. Hands-on POVs welcome!
I'm glad virtual voice acting and karaoke is a thing. It lets me hear talented people who prefer live performances. https://youtu.be/Q5yMWVgVR5Q #BloodflameTunes #hololive #kaguyasamaloveiswar #ERB #ElizabethRoseBloodflame
La European Review of Books est une nouvelle revue résolument européenne, ludique, littéraire, culturelle, et si elle est en anglais (et dans la langue originale) absolument pas anglo-centrée. Bref ça fait plaisir!
Ils n’ont qu’un seul défaut: ils ne sont pas sur mastodon!
https://europeanreviewofbooks.com/
#ERB #europeanreviewofbooks
Edgar Rice Burroughsin The Moon Maid alkaa maapallon vaihtoehtohistorialla, jossa ihmiskunta on sotinut yhtäjaksoisesti ensimmäisestä maailmansodasta vuoteen 1967 asti. Sotimiseen käytetty tarmo suunnataan avaruustutkimukseen. 2024 Barsoom-alus suuntaa kohti Marsia, mutta mukana oleva petturi saa aikaan sen, että alus päätyy kuuhun. Kuussa seikkailut jatkuvat perinteiseen ERB-tyyliin monenkirjavien asukkaiden parissa. Paremman pään Burroughsia ja kuusarjan 1. osa. #kirjat #BooksofMastodon #ERB
A 27 year old Virgil Finlay illustrating The Lord of the Jungle in one of ERB's final tales from Argosy Weekly, August 23, 1941. Surely one of his final assignments before entering WWII. Burroughs, in his late 60s and in Honolulu during the attack on Pearl Harbor, became one of the oldest war correspondents for the duration. Please, don't be shy, drop your best "dude wrestling a python" jokes below. #FinlayFriday
#VirgilFinlay #EdgarRiceBurroughs #ERB #Tarzan #Pulps #Fantasy @fantasy
@Free_Press ugh… well I leave you all with this.
Epic Rap Battles of Historty - Godzilla vs King Kong
Il est pas mal le dernier #ERB...
https://iv.ggtyler.dev/watch?v=QjqjoehA7kM
I am having some difficulty with embedding a shopify buy button into my website (static site using Ruby-based Middleman). I am putting the div ID ref in the data yml file and then calling it using ERB.
The button shows up and works.... It's just showing up at the very bottom of the page, beneath the footer.
Ive tried putting the div Shopify gives you directly where I want it to, without ERB calling the data yml file, and it still just shows up at the bottom.
I've tried having the JS directly in the head and I've tried putting it in the asset compiler.
My duckduckgoing has resulted in finding one other person who had this issue and it seems like they solved it by changing ' to " in the div ref id, but they were not using Middleman. I tried that too and still no dice.
Anyone else run into this issue? Advice? #ruby #middleman #staticsitegenerator #shopify #erb
It's a vibe. Glad to see a new one.