fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#erb

1 post1 participant0 posts today

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

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!

#ruby#erb#html

Here's Theo, my first Ruby gem: github.com/loomchild/theo-rail

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?

GitHubGitHub - loomchild/theo-rails: Theo is a small and elegant HTML-like template language for Ruby on Rails, featuring natural partials and computed attributes.Theo is a small and elegant HTML-like template language for Ruby on Rails, featuring natural partials and computed attributes. - loomchild/theo-rails

#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!

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

ERB | InvidiousHenry Ford vs Karl Marx. Epic Rap Battles Of HistoryHenry Ford vs Karl Marx. Epic Rap Battles Of History. Huge thanks to our wonderful patrons! To join our crew go to: http://patreon.com/erb You can also listen to this track on multiple streaming platforms: https://shorturl.at/xyGT4 Watch the Behind The Scenes: ► http://youtube.com/erb2 Check out our Writing Class: http://studio.com/ERB Subscribe to ERB: https://bit.ly/2zBQU53 Official ERB Merch: https://erbmerch.com Official ERB Website: https://erbofhistory.com Epic Rap Battles of History: Henry Ford vs Karl Marx. The king of capitalism goes head to head against the father of communism in an epic rap battle of history! This matchup was the clear winner of a poll we posted over on the ERB YouTube community page last year. Thanks very much for all of your responses. Hope you all enjoy the battle! Who won? Who’s next? You decide! Thank you for watching! np & eL #epicrapbattlesofhistory #epicrapbattles #erb #henryford #karlmarx #modelt #ERBFordvsMarx CAST ====== Henry Ford: Nice Peter http://www.youtube.com/NicePeter Karl Marx:: EpicLLOYD http://www.youtube.com/EpicLLOYD IG & Tik Tok @theepiclloyd CREW ====== Executive Producers: Nice Peter and EpicLLOYD Directed by: Ryan Moulton Produced by: Atul Singh Written by: Nice Peter, EpicLLOYD, Zach Sherwin and the many most excellent contributors of our Patreon Writers Crew. Thank you! Beat Produced by: Nice Peter & EpicLLOYD Music Mixed and Mastered by: Nice Peter Director of Photography: Jon Na Assistant Camera: Andy Chinn Dept. Head Makeup and Hair: Brielle McKenna Makeup and Hair Artist: Lian Uritsky Wardrobe and Props: Nice Peter and EpicLLOYD Playback: Patrick Rowland Production Coordinator: Andy Sandoval DIT and Health & Safety Manager: Atul Singh A Gracious Thanks to the Model “T” Team: Picture Car Coordinator: Andria Myers Model "T" Ford Touring Car provider: Rex DeSurra Video Editors: Ross Fearnley, Nice Peter VFX and Compositing: Dan Delboy, Charlie Miller, Nice Peter Special thanks to Chris Olpin. Shot on the ALEXA Mini Edited in Adobe Premiere, After Effects and Unreal Engine 5 Recorded and mixed in Pro Tools KeEp iN TOuch WitH eRb OnliNe! ======== https://erbofhistory.com http://patreon.com/erb http://instagram.com/erb http://facebook.com/erb http://twitter.com/ERBofHistory http://erbmerch.com

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