Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enable and use line statements.

  • Loading branch information...
commit 3771b4258ce9d714ebcfbfe78c21a2e7de70ba46 1 parent 96a037a
@aszlig authored
Showing with 4 additions and 3 deletions.
  1. +3 −2 bin/render
  2. +1 −1  config/home/i3/i3_config
View
5 bin/render
@@ -64,8 +64,9 @@ class InstallTargetExtension(Extension):
def render(basedir, ilist, tpl):
env = Environment(loader=FileSystemLoader(basedir),
- extensions=[InstallTargetExtension],
- autoescape=False)
+ extensions=[InstallTargetExtension],
+ autoescape=False,
+ line_statement_prefix='#:')
env.install_listfile = ilist
template = env.get_template(tpl)
return template.render().rstrip() + "\n"
View
2  config/home/i3/i3_config
@@ -1,4 +1,4 @@
-{% install "~/.i3/config" -%}
+#: install "~/.i3/config"
# i3 config file (v4.1)
# default modifier key
Please sign in to comment.
Something went wrong with that request. Please try again.