Skip to content

Getting an error when leaving a space between doctype and html #75

@lobo-tuerto

Description

@lobo-tuerto

Hello,
I'm just trying out Slime and while converting my app.html.eex file I found out that if I write this:

doctype html

html

I get an error like:

Compiling 1 file (.ex)

== Compilation error in file lib/rumbl_web/views/layout_view.ex ==
** (Slime.TemplateSyntaxError) Unexpected symbol '
'
INPUT, Line 2, Column 1

Notice the empty line between doctype and html.
If I remove the space everything is ok.

It also works like this:

doctype html
|
html

Is there any particular reason why an empty line is not allowed between the doctype and html tags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions