Changelog
v0.5.0
Jul 25, 2016
HTML comments are now supported. They are just like -//
comments, but they will render as <!-- ... -->
.
// This is a comment
(Anything below it will be part of the comment)
v0.4.0
Jul 23, 2016
Value-less boolean attributes are now supported.
textarea(spellcheck)
Unescaped text (!=
) is now supported.
div!= markdown_to_html(@article.body) |> sanitize()
You can now change the raw
helper in case you’re not using Phoenix. The raw_helper
(which defaults to "raw"
as Phoenix uses) is used on unfiltered text (such as != text
).
Expug.to_eex!("div= \"Hello\"", raw_helper: "")
v0.3.0
Jul 21, 2016
#3 - Attribute values are now escaped properly. This means you can now properly do:
- json = "{\"hello\":\"world\"}"
div(data-value=json)
<div data-value="{"hello":"world"}">
nil
values are also now properly handled, along with boolean values.
textarea(spellcheck=nil)
textarea(spellcheck=true)
textarea(spellcheck=false)
<textarea></textarea>
<textarea spellcheck></textarea>
<textarea></textarea>
v0.2.0
Jul 17, 2016
The new block text directive allows you to write text without Expug parsing.
script.
if (usingExpug) {
alert('Awesome!')
}
Added support for multiline code. Lines ending in {
, (
, [
or ,
will assume to be wrapped.
= render App.FooView, "nav.html",
conn: @conn,
action: {
"Create new",
item_path(@conn, :new) }
v0.1.1
Jun 27, 2016
Expug now supports if do ... end
and other blocks.
= if @error do
.alert Uh oh! Check your form and try again.
v0.0.1
Jun 26, 2016
Initial release.