move left and right delimiter functions and properties to Render class.
implement new replaceMacros function
create new class and redirect old functions