Questions tagged [haml]
HAML is a markup language that’s used to cleanly and simply describe the HTML of any web document without the use of inline code.
6 questions
3
votes
1
answer
134
views
Ruby on rails instance loops
I am trying to use a custom sql query to display different attributes for a product i.e. Size and Price. The query I have when running in console displays as it should
...
2
votes
1
answer
60
views
View for displaying nounal and verbal pages
I've got this code in my View that just list two type of links.
Here's an example output:
Nounal Pages
cleaners/house-cleaners
Verbal Pages
cleaning/house-cleaning
Here's the view code. How ...
4
votes
1
answer
270
views
Ruby on Rails text editor
I'm currently building a text editor using contenteditable and RoR back end. As the editor is WYSIWYG and trying to follow DRY, I used only one file to 3 actions: Show, Edit and New.
Edit and new ...
2
votes
1
answer
254
views
Render dynamically vertical tabs and set classes depends on if statement
I would like to refactor code below and get rid of if statements for classes from view.
...
1
vote
1
answer
478
views
Complex dashboard using presenters and/or service objects
TL;DR
I need a way to refactor a complex user dashboard with several objects and some complex data to display a accounting chart. I have read about both presenters (also called decorators or view ...
5
votes
1
answer
484
views
Python parser for attributes in a HAML template
I'm working on a feature for the HamlPy (Haml for Django) project:
About Haml
For those who don't know, Haml is an indentation-based markup language which compiles to HTML:
...