Packages

`SWAFViews` is a template library dedicated to HTML generation. It only depends on EEX. It precompiles templates as functions for fast rendering and protects the rendered code from injection.

Current section

Files

Jump to
swaf_views README.md
Raw

README.md

# SwafViews
`SWAFViews` is a template library dedicated to HTML generation. It
only depends on EEX. It precompiles templates as functions for fast
rendering and protects the rendered code from injection.
## Installation
The package can be installed by adding `swaf_views` to your list of
dependencies in `mix.exs`:
```elixir
defp deps do
[
# {:swaf_views, path: "../swaf_views"},
{:swaf_views, "~> 0.1"}
]
end
```
## Documentation
For a complete documentation, please refer to the [`SWAFViews` module
documentation](https://hexdocs.pm/?q=swaf_views).