Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
ca854af5
Commit
ca854af5
authored
Mar 23, 2016
by
Dave Cunningham
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #437 from sparkprime/jinja_imports
Expandybird: Fix Jinja file imports
parents
873a8af4
148129d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
expansion.py
expansion/expansion.py
+3
-1
No files found.
expansion/expansion.py
View file @
ca854af5
...
@@ -282,7 +282,9 @@ def ExpandJinja(file_name, source_template, resource, imports):
...
@@ -282,7 +282,9 @@ def ExpandJinja(file_name, source_template, resource, imports):
"""
"""
try
:
try
:
env
=
jinja2
.
Environment
(
loader
=
jinja2
.
DictLoader
(
imports
))
jinja_imports
=
(
{
i
[
'path'
]:
i
[
'content'
]
for
_
,
i
in
imports
.
iteritems
()})
env
=
jinja2
.
Environment
(
loader
=
jinja2
.
DictLoader
(
jinja_imports
))
template
=
env
.
from_string
(
source_template
)
template
=
env
.
from_string
(
source_template
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment