hemplateSimple XML template engine |
git clone git://git.dimitrijedobrota.com/hemplate.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING | |
commit | c1e5f12e6982805d10e9c04ffc85fa71e4ca4f8f |
parent | d6a6da986f4309d71e397b6b8f498d9c203cf773 |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Thu, 27 Jun 2024 01:00:19 +0200 |
Add shorthand for atom::feed
Diffstat:M | include/hemplate/classes.hpp | | | +++++++++- |
1 files changed, 9 insertions(+), 1 deletions(-)
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">>;