can't you pass the variable? if you just want to reuse it in a macro, you 
should generate the name outside and quote
    
    
    let n = ident"n"
    
    let first = quote:
      var `n` = 1
      ..
    
    let second = quote:
      `n` = 2
    
    # now first and second are NimNode with that AST, instead of expanding 
templates
    
    
    Run

inline templates are also useful, but I find quote nice for macros too!! 

Reply via email to