This is a C++ implementation of RFC6570 - URI Template, and can expand templates up to and including Level 4 in that specification.
#include "uritemplate.hpp"
using UriTemplate = uritemplatecpp::UriTemplate;
int main(){
UriTemplate uri("{hello}");
uri.set("hello","world");
assert(uri.build() == "world");
return 0;
}
Copyright (c) 2018 ReturnZer0
MIT License, see http://mit-license.org/