templatized simple editor