phoenix_slime
phoenix_slime copied to clipboard
Getting an error when leaving a space between `doctype` and `html`
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?
@lobo-tuerto what versions are you running? This should work unless I'm misunderstanding something here.
@doomspork According to mix.lock
:
:phoenix_slime, "0.13.0"
:slime, "1.2.1"
@doomspork It seems like an interesting issue, I am willing to work on it. Can you or anyone else give me pointers If any?
Already fixed in slime https://github.com/slime-lang/slime/issues/160
Thanks all! I’m going to cut a new release shortly