SRecode is a tool that caters to a variety of template languages and includes a set of heuristics to assist the user in selecting a template to insert.