slime-lang / slime

Minimalistic HTML templates for Elixir, inspired by Slim.
http://slime-lang.com
MIT License
368 stars 57 forks source link

Hash sign throws warning #132

Closed pikeas closed 7 years ago

pikeas commented 7 years ago
a href="#" Foo

This throws a warning:

warning: this check/guard will always yield the same result
  lib/foo/web/templates/layout/bp.html.slim:1

Although this example is a single line, the line number in the warning remains 1 for a multi-line template.

Escaping the hash sign as \# removes the warning.

Elixir 1.4.4 and Slime 1.0.0.