hemplate

Simple XML template engine
git clone git://git.dimitrijedobrota.com/hemplate.git
Log | Files | Refs | README | LICENSE

commit c1e5f12e6982805d10e9c04ffc85fa71e4ca4f8f
parent d6a6da986f4309d71e397b6b8f498d9c203cf773
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Thu, 27 Jun 2024 03:00:19 +0200

Add shorthand for atom::feed

Diffstat:
Minclude/hemplate/classes.hpp | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/hemplate/classes.hpp b/include/hemplate/classes.hpp @@ -253,13 +253,21 @@ using width = elementBoolean<tag<"width">>; namespace atom { +class feed : public elementBoolean<tag<"feed">> +{ +public: + explicit feed(std::string xmlns = "http://www.w3.org/2005/Atom") + : elementBoolean(attributeList({{"xmlns", std::move(xmlns)}})) + { + } +}; + using author = elementBoolean<tag<"author">>; using category = elementBoolean<tag<"category">>; using content = elementBoolean<tag<"content">>; using contributor = elementBoolean<tag<"contributor">>; using div = elementBoolean<tag<"div">>; using entry = elementBoolean<tag<"entry">>; -using feed = elementBoolean<tag<"feed">>; using generator = elementBoolean<tag<"generator">>; using icon = elementBoolean<tag<"icon">>; using id = elementBoolean<tag<"id">>;