Oct 26, 2017
- Fix issue where elements with text (eg,
title Hello
) produce errors.
Oct 19, 2017
- Fix problem with value-less attributes (eg,
input(required type="text")
).
Oct 18, 2017
- #10 - Fix Elixir 1.5.2 warnings about
String.rstrip/1
. - #8 - Fix
$
not being allowed in plain texts. (@cubeguerrero, #7)
Mar 14, 2017
- #6 - Fixes consecutive if-else blocks.
Aug 29, 2016
- #5 - Fixes problems with some nodes rendering as text.
Aug 29, 2016
- Fix multiline dot blocks (
script.
).
Jul 29, 2016
Squash Elixir warnings; no functional changes.
Jul 29, 2016
Support improved multiline. Write =
, !=
or -
immediately followed by a newline. All text indented inside it will be treated as part of an Elixir expression.
=
render App.MyView, "index.html",
[conn: @conn] ++
assigns
Error messages have also been improved.
Jul 25, 2016
Fix: Line comments have been changed from -//
to //-
(had a mistake in implementing that, sorry!)
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)
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: "")
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>
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) }
Jun 27, 2016
Expug now supports if do ... end
and other blocks.
= if @error do
.alert Uh oh! Check your form and try again.
Jun 26, 2016
Initial release.