#! stdtmpl # #template `%`(idx: expr): expr {.immediate.} = # row[idx] #end template # # #proc genThreadsList(c: var TForumData, count: var int): string = # const query = sql"select id, name, views, modified from thread order by modified desc limit ?, ?" # const threadId = 0 # const name = 1 # const views = 2 # # result = "" # count = 0