[ticket/289] Add method for assigning module template variables