Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8472875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:11:45+00:00 2026-06-10T17:11:45+00:00

I use haml a lot when developing web applications but for the job I

  • 0

I use haml a lot when developing web applications but for the job I am doing right now all the client needs is flat HTML files and some javascript. There are quite a few files I thought it might be easier to code them all up using haml, with a layout file to capture the stuff common to each page.

I checked the haml docs and they offer a simple example:

haml hello_world.haml hello_world.html

that happily generates a hello world page from my template. I’ve scoured the docs for information on how I could get it to recognise a layout.haml file however but have not had any luck.

The goal is to set up a directory structure like

/
 - templates/
    - layout.haml
    - other.haml
    - pages.haml
 - output/

and from command line just go

haml templates output

and generate other.html and pages.html

Is this possible, or am I looking at the wrong tool for this job?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:11:47+00:00Added an answer on June 10, 2026 at 5:11 pm

    I’d look at using Jekyll with a HAML workflow something like this http://mikeferrier.com/2011/04/29/blogging-with-jekyll-haml-sass-and-jammit/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use haml in rails 3 project. Now how to start? How
I'm trying to generate haml views with devise, but it always use erb instead.
After installing rails3, I'm experiencing problems when trying to use haml with it. I
I am using Haml in a Ruby on Rails project. I know you use
If you use haml as rails view template, you can write portion of your
Is it possible to use Haml instead of a templating engine with the Catalyst
I am trying to use haml in a partial, I wrote: %p.nested-check-fields = f.input
I use ror3 + backbone.js and ejs + haml + haml_assets for templating. I
I use rails and haml, haml-rails. How I create hidden_field in haml? I have
I am building a Sammy application and I want to use Haml for it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.