Skip to content

Commit

Permalink
vbump to v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bunopnu committed Oct 29, 2023
1 parent ef64452 commit 25132cf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
- name: Upload Coverage Reports
run: rebar3 coveralls send
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
27 changes: 10 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# e2h

`e2h` is an Erlang module designed to generate HTML content within the Erlang. It provides functions for encoding HTML elements and attributes, as well as escaping suspicious characters within HTML content. This module is suitable for developers who need to programmatically generate HTML documents or elements in their Erlang applications.
`e2h` (Erlang to HTML) is an Erlang module designed to generate HTML content within the Erlang.
It provides functions for encoding HTML elements and attributes, as well as escaping dangerous characters within HTML content.

This module is suitable for developers who need to programmatically generate HTML documents or elements in their Erlang applications.

[![Test Status](https://github.com/bunopnu/fresh/actions/workflows/test.yml/badge.svg)](https://github.com/bunopnu/fresh/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/bunopnu/e2h/badge.svg?branch=main)](https://coveralls.io/github/bunopnu/e2h)
Expand All @@ -10,18 +13,8 @@

Package can be installed by adding `e2h` to your list of dependencies:

### With Rebar3

```erlang
{deps, [{e2h, "0.4.0"}]}.
```

### With Mix

```elixir
defp deps do
[{:e2h, "~> 0.4.0"}]
end
{deps, [{e2h, "0.4.1"}]}.
```

## Usage Example
Expand All @@ -35,11 +28,11 @@ UserName = <<"bob">>,
UserJob = <<"data scientist">>,

Document = [
{'div', [{class, <<"user">>}, {status, UserStatus}], [
{img, [{href, UserProfileImage}]},
{'div', [], [
{h1, [], [UserName]},
{p, [], [UserJob]}
{<<"div">>, [{<<"class">>, <<"user">>}, {<<"status">>, UserStatus}], [
{<<"img">>, [{<<"href">>, UserProfileImage}]},
{<<"div">>, [], [
{<<"h1">>, [], [UserName]},
{<<"p">>, [], [UserJob]}
]}
]}
],
Expand Down
2 changes: 1 addition & 1 deletion rebar.config.script
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
case {os:getenv("GITHUB_ACTIONS"), os:getenv("GITHUB_TOKEN")} of
case {os:getenv("GITHUB_ACTIONS"), os:getenv("COVERALLS_REPO_TOKEN")} of
{"true", Token} when is_list(Token) ->
CONFIG1 = [
{coveralls_repo_token, Token},
Expand Down
2 changes: 1 addition & 1 deletion src/e2h.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, e2h, [
{description, "HTML generator for Erlang ecosystem"},
{vsn, "0.4.0"},
{vsn, "0.4.1"},
{registered, []},
{applications, [
kernel,
Expand Down

0 comments on commit 25132cf

Please # to comment.