Put templates into a proper scope

This commit is contained in:
2016-09-29 15:27:42 +03:00
parent 8811476f9f
commit fcc9550fd5
2 changed files with 17 additions and 2 deletions

View File

@@ -9,7 +9,8 @@ class BspwmTaskbar < Worker
if line == "\n"
self.write ""
else
self.write @config['mod']['bspwm_taskbar']['begin'].erb + line.chomp + @config['mod']['bspwm_taskbar']['end'].erb + "\n"
tmpl = Template.new(@config['mod']['bspwm_taskbar']['begin'] + line.chomp + @config['mod']['bspwm_taskbar']['end'])
self.write tmpl.render(@config, nil)
end
end
end