Thanks for the suggestions. @mratsim I had no idea you could put a template inside a macro and get its evaluated AST. Cool! This will be very useful.
@Lando Interesting, I guess this works because quote doesn't touch the passed in backticked identifier and this is then returned intact to the template? Maybe I should treat identifiers-like NimNodes as more of a black box in the future to allow this sort of thing.