templated quote machine

@Dennis G D