diff --git a/CHANGELOG.md b/CHANGELOG.md index 1586469..edeead6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## Next +## v0.4.2 - 23rd April 2024 + +### Added + +- New macro `eTitle/1`. + ## v0.4.1 - 29th October 2023 ### Changed diff --git a/README.md b/README.md index 02e34b4..87ee404 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This module is suitable for developers who need to programmatically generate HTM Package can be installed by adding `e2h` to your list of dependencies: ```erlang -{deps, [{e2h, "0.4.1"}]}. +{deps, [{e2h, "0.4.2"}]}. ``` ## Usage Example diff --git a/include/html.hrl b/include/html.hrl index f1bfffb..9fddd01 100644 --- a/include/html.hrl +++ b/include/html.hrl @@ -35,6 +35,7 @@ -define(eHead(X), {<<"head">>, [], X}). -define(eHeader(X), {<<"header">>, [], X}). -define(eSummary(X), {<<"summary">>, [], X}). +-define(eTitle(X), {<<"title">>, [], X}). %% Macro Definitions for Line Breaks and Horizontal Rules -define(eBr(), {<<"br">>}). diff --git a/rebar.config b/rebar.config index 912a53f..83a308d 100644 --- a/rebar.config +++ b/rebar.config @@ -3,7 +3,7 @@ {deps, []}. -{project_plugins, [rebar3_hex, rebar3_lint, coveralls]}. +{project_plugins, [rebar3_hex, coveralls]}. {hex, [{doc, edoc}]}. {shell, [{apps, [e2h]}]}. diff --git a/src/e2h.app.src b/src/e2h.app.src index f239e3e..70e605d 100644 --- a/src/e2h.app.src +++ b/src/e2h.app.src @@ -1,6 +1,6 @@ {application, e2h, [{description, "HTML generator for Erlang ecosystem"}, - {vsn, "0.4.1"}, + {vsn, "0.4.2"}, {registered, []}, {applications, [kernel, stdlib]}, diff --git a/test/e2h_tests.erl b/test/e2h_tests.erl index e837545..caa81f8 100644 --- a/test/e2h_tests.erl +++ b/test/e2h_tests.erl @@ -40,7 +40,7 @@ simple_render_test() -> html_macros_render_test() -> Document = ?eHTML( - [{<<"title">>, [], [<<"hello!">>]}], + [?eTitle([<<"hello!">>])], [?eDiv([?eH1([<<"Hello, World!">>]), ?eSpan([?eP([<<"Long Story...">>]), ?eA(<<"https://bun.rip">>, [<<"Visit My Website!">>])]),