Tag parser now takes in layout with constructor and content with compile call to promote reuse.