aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_print_formats.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_print_formats.cc')
-rw-r--r--src/clients/cave/cmd_print_formats.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_print_formats.cc b/src/clients/cave/cmd_print_formats.cc
index 8413a1138..45833236c 100644
--- a/src/clients/cave/cmd_print_formats.cc
+++ b/src/clients/cave/cmd_print_formats.cc
@@ -71,6 +71,24 @@ namespace
return "%" + std::string(1, c_);
}
+ template <char c_>
+ std::string param_if()
+ {
+ return "%{if " + std::string(1, c_) + "}";
+ }
+
+ template <char c_>
+ std::string param_else()
+ {
+ return "%{else}";
+ }
+
+ template <char c_>
+ std::string param_endif()
+ {
+ return "%{endif}";
+ }
+
struct Storer
{
std::string user_key;