Add custom_fragment parameter

The parameters are often limited in what they can express. this allows
custom templates to be used for the configuration