Closed Qqwy closed 7 years ago
phoenix_haml isn't a haml parser and it doesn't really do much. Your issue is with calliope and should be submitted in to that project https://github.com/nurugger07/calliope. However, I can tell you that calliope doesn't support that syntax so it may be a feature request rather than a bug report.
Actually, I believe you can do it like this:
%nav.ui.top.fixed.menu
.header.item
Cyclicash
.right.menu
=link to: login_path, class: "item" do
login
- end
= link to: register_path, class: "item" do
register
- end
You just need an explicit - end
on each block.
[Edit: I realized after commenting that the link above already provided this solution.]
First and foremost: How nice that there is a HAML-parser for Elixir/Phoenix! :-)
Unfortunately, the following goes wrong:
This file (saved as
templates/layout/menu.html.haml
)breaks the HAML-parsing. Here is the stacktrace:
I think it chokes on the optional block-passing.