Packages
Nitrogen Web Framework Core Library
Current section
Files
Jump to
Current section
Files
src/elements/html5/element_html5_footer.erl
% vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% See MIT-LICENSE for licensing information.
-module (element_html5_footer).
-include("wf.hrl").
-export([
reflect/0,
render_element/1
]).
-spec reflect() -> [atom()].
reflect() -> record_info(fields, html5_footer).
-spec render_element(#html5_footer{}) -> body().
render_element(Record ) ->
wf_tags:emit_tag('footer', Record#html5_footer.body, [
{id, Record#html5_footer.html_id},
{class, ["html5_footer", Record#html5_footer.class]},
{title, Record#html5_footer.title},
{style, Record#html5_footer.style},
{role, Record#html5_footer.role},
{data_fields, Record#html5_footer.data_fields}
]).