Indention in haml files

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Indention in haml files

Rvedstes
Hi,

I am a new user of Awestruct and have a question regarding indention.

Awestruct seems pretty strickt about indention in the Haml files. If I e.g. insert a couple of extra tabs at the start of a line in a working .haml file, then I will get an error message like this when the file is reloaded:
 
  StandardError: ERROR: Failed to render: /_layouts/base.html.haml at line 12
  Haml::SyntaxError: The line was indented 3 levels deeper than the previous line.


Is there any way to get around / disable these indention checks - or are they necessary for the parser to work correctly?

I'm running Awestruct 0.5 and when I download some of the gallery projects (TorqueBox, Arquillian, Ceylon) from Github then I get the same error message for each of these projects. So I guess the indention check has not been as strict in earlier versions of of Awestruct.
Reply | Threaded
Open this post in threaded view
|

Re: Indention in haml files

LightGuard
Administrator

That's just haml, no way around it


Sent from Mailbox for iPhone


On Thu, Apr 18, 2013 at 8:06 AM, Rvedstes <[hidden email]> wrote:

Hi,

I am a new user of Awestruct and have a question regarding indention.

Awestruct seems pretty strickt about indention in the Haml files. If I e.g.
insert a couple of extra tabs at the start of a line in a working .haml
file, then I will get an error message like this when the file is reloaded:

/StandardError: ERROR: Failed to render: /_layouts/base.html.haml at line
12
Haml::SyntaxError: The line was indented 3 levels deeper than the previous
line./

Is there any way to get around / disable these indention checks - or are
they necessary for the parser to work correctly?

I'm running Awestruct 0.5 and when I download some of the gallery projects
(TorqueBox, Arquillian, Ceylon) from Github then I get the same error
message for each of these projects. So I guess the indention check has not
been as strict in earlier versions of of Awestruct.



--
View this message in context: http://talk-archive.awestruct.org/Indention-in-haml-files-tp237.html
Sent from the Awestruct Talk mailing list archive at Nabble.com.

---------------------------------------------------------------------
Archives: http://talk-archive.awestruct.org/
To unsubscribe, e-mail: [hidden email]