2019-07-04 00:36:04 +00:00
# Changelog
2019-08-10 05:09:24 +00:00
## Master
2020-08-09 14:07:27 +00:00
- Can pass a keyword list to be evaluated at runtime as attrs/assigns to an element.
```elixir
# compile time
div class: "foo", id: bar do
# something
end
# <div class="foo" id="<%= bar %>">
# <!-- something -->
# </div>
# runtime
div some_var do
# something
end
# <div<%= PrivateTempleModule.runtime_attrs(some_var) %>>
# <!-- something -->
# </div>
```
2020-07-24 19:54:38 +00:00
### Breaking
Components are now defined using modules. You can convert your existing components by configuring your component prefix and wrapping your current component files in the `Temple.Component` behaviour implementation.
2020-07-23 01:30:39 +00:00
### Bugs
- Did not correctly parse expressions with do blocks where the expression had two or more arguments before the block
2020-07-16 04:21:25 +00:00
## 0.6.0-alpha.4
- Fix a bug where lists would not properly compile
2020-07-16 03:23:12 +00:00
## 0.6.0-alpha.3
- Compile functions/macros that take blocks that are not if/unless/for
2020-07-16 02:40:46 +00:00
## 0.6.0-alpha.2
### Component API
Please see the README for more details regarding the Component API
2020-07-01 00:40:38 +00:00
## 0.6.0-alpha.1
### Generators
You can now use `mix temple.gen.live Context Schema table_name col:type` in the same way you can with Phoenix.
### Other
- Make a note in the README to set the filetype for Live temple templates to `lexs` . You should be able to set this extension to use Elixir for syntax highlighting in your editor. In vim, you can add the following to your `.vimrc`
```vim
augroup elixir
autocmd!
autocmd BufRead,BufNewFile *.lexs set filetype=elixir
augroup END
```
2020-06-16 19:28:21 +00:00
## 0.6.0-alpha.0
### Breaking!
This version is the start of a complete rewrite of Temple.
- Compiles to EEx at build time.
- Compatible with `Phoenix.LiveView`
- All modules other than `Temple` are removed
- `mix temple.convert` Mix task removed
2020-04-09 03:28:02 +00:00
## 0.5.0
- Introduce `@assigns` assign
- Join markup with a newline instead of empty string
2020-03-26 17:23:12 +00:00
## 0.4.4
- Removes unnecessary plug dependency.
- Bumps some other dependencies.
2020-01-08 04:49:51 +00:00
## 0.4.3
- Compiles when Phoenix is not included in the host application.
2019-11-23 03:55:57 +00:00
## 0.4.2
- temple.convert task no longer fails when parsing HTML fragments.
2019-09-25 23:23:00 +00:00
## 0.4.1
- Only use Floki in dev and test environments
2019-09-14 01:38:53 +00:00
## 0.4.0
2019-09-14 01:36:16 +00:00
- `Temple.Svg` module
- `mix temple.convert` Mix task
- (dev) rename `mix update_mdn_docs` to `mix temple.update_mdn_docs` and don't ship it to hex
### Breaking
2019-09-14 01:38:53 +00:00
- Rename `Temple.Tags` to `Temple.Html`
2019-09-14 01:36:16 +00:00
2019-08-28 02:09:22 +00:00
## v0.3.1
- `Temple.Form.phx_label` , `Temple.Form.submit` , `Temple.Link.phx_button` , `Temple.Link.phx_link` now correctly parse blocks. Before this, they would escape anything passed to the block instead of accepting it as raw HTML.
2019-08-21 03:32:14 +00:00
## v0.3.0
2019-08-21 03:17:46 +00:00
- `Temple.Tags.html` now prepends the doctype, making it valid HTML
- `Temple.Elements` module
### Breaking
- `Temple.Tags.html` no longer accepts content as the first argument. A legal `html` tag must contain only a single `head` and a single `body` .
2019-08-13 22:28:28 +00:00
## 0.2.0
- Wrap `radio_buttton/4` from Phoenix.HTML.Form
2019-08-13 15:04:14 +00:00
2019-08-10 05:10:45 +00:00
## 0.1.2
2019-08-10 05:09:24 +00:00
### Bugfixes
- Allow components to be used correctly when their module was `require` d instead of `import` ed
2019-08-08 13:01:28 +00:00
## 0.1.1
### Bugfixes
- Escape content passed to 1-arity tag macros
### Development
- Upgrade various optional development packages
2019-07-04 00:36:04 +00:00
## 0.1.0
- Initial Release