Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rstacruz/phoenix_expug
Expug integration for Phoenix
https://github.com/rstacruz/phoenix_expug
expug haml html jade phoenix pug
Last synced: about 1 month ago
JSON representation
Expug integration for Phoenix
- Host: GitHub
- URL: https://github.com/rstacruz/phoenix_expug
- Owner: rstacruz
- Created: 2016-06-13T21:31:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T09:14:11.000Z (almost 7 years ago)
- Last Synced: 2024-09-28T08:42:35.334Z (about 2 months ago)
- Topics: expug, haml, html, jade, phoenix, pug
- Language: JavaScript
- Size: 66.4 KB
- Stars: 20
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
Awesome Lists containing this project
README
# phoenix_expug
> Phoenix integration for the Expug template engine
[Expug] is a HTML template engine for indented shorthand, inspired by Pug/Jade, Haml and Slim. This package integrates Expug with [Phoenix].
[Expug]: https://github.com/rstacruz/expug
[Phoenix]: http://phoenixframework.org/[![Status](https://travis-ci.org/rstacruz/phoenix_expug.svg?branch=master)](https://travis-ci.org/rstacruz/phoenix_expug "See test builds")
## Installation
Add phoenix_expug to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:phoenix_expug, "~> 0.1.1"}]
end
```Add the following to your `config/config.exs`:
```elixir
config :phoenix, :template_engines,
pug: PhoenixExpug.Engine
```Add the .pug extension to Phoenix livereload in `config/dev.exs`:
```elixir
config :hello_phoenix, HelloPhoenix.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{web/views/.*(ex)$},
~r{web/templates/.*(eex|pug)$}
# ^^^^
]
]
```## Thanks
**phoenix-expug** © 2016-2017, Rico Sta. Cruz. Released under the [MIT] License.
Authored and maintained by Rico Sta. Cruz with help from contributors ([list][contributors]).> [ricostacruz.com](http://ricostacruz.com) ·
> GitHub [@rstacruz](https://github.com/rstacruz) ·
> Twitter [@rstacruz](https://twitter.com/rstacruz)[MIT]: http://mit-license.org/
[contributors]: http://github.com/rstacruz/phoenix_expug/contributors[![](https://img.shields.io/github/followers/rstacruz.svg?style=social&label=@rstacruz)](https://github.com/rstacruz)
[![](https://img.shields.io/twitter/follow/rstacruz.svg?style=social&label=@rstacruz)](https://twitter.com/rstacruz)