Fix for issue #120

The field attribute can contain a static id field pair with dynamic
field pairs

add-template now returns an html function that updates ids in the
 renderer's template data when an id is set.