https://github.com/greenboxal/phoenix_bert
BERT encoder/decoder for Phoenix
https://github.com/greenboxal/phoenix_bert
bert bert-rpc elixir phoenix
Last synced: about 2 months ago
JSON representation
BERT encoder/decoder for Phoenix
- Host: GitHub
- URL: https://github.com/greenboxal/phoenix_bert
- Owner: greenboxal
- License: mit
- Created: 2017-09-17T04:56:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T02:26:25.000Z (over 7 years ago)
- Last Synced: 2025-03-21T11:11:13.482Z (2 months ago)
- Topics: bert, bert-rpc, elixir, phoenix
- Language: Elixir
- Homepage: https://bert-rpc.com
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Phoenix BERT
[](https://travis-ci.org/veyond-card/phoenix_bert)
[](http://inch-ci.org/github/veyond-card/phoenix_bert)This library makes [BERT](https://birt-rpc.org) available to Phoenix so you can encode/decode it.
## Usage
Add the following configuration to phoenix:
config :phoenix, :format_encoders,
bert: PhoenixBertAnd add "bert" as an acceptable format to :accepts plug
plug :accepts, ["json", "bert"]
Render a view with BERT:render(conn, "user.bert", %{name: "Test"})
Render BERT directly:PhoenixBert.Conn.bert(conn, %{name: "Test"})
## License
Phoenix BERT source code is released under MIT License.
Check LICENSE file for more information.