slime-lang / slime

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

Ability to interpolate HTML inside text blocks #119

Closed darthdeus closed 7 years ago

darthdeus commented 7 years ago

Currently

p
  | Hello #{link "world", to: "/foo"}

will result in an error

protocol String.Chars not implemented for {:safe, [60, "a", [[32, "href", 61, 34, "/world", 34]], 62, "Hello", 60, 47, "a", 62]}
doomspork commented 7 years ago

Thanks @darthdeus! Want to take a shot at implementing this?

Rakoth commented 7 years ago

@darthdeus could you confirm it is fixed with current master?

Rakoth commented 7 years ago

fixed by #130