File tree Expand file tree Collapse file tree 7 files changed +10
-5
lines changed Expand file tree Collapse file tree 7 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 87
87
=====
88
88
89
89
Pipeline also includes Jinja2 support and is used almost identically to the Django Template tags implementation.
90
- You just need to pass ``pipeline.jinja2 .ext.PipelineExtension `` to your Jinja2 environment.
90
+ You just need to pass ``pipeline.templatetags .ext.PipelineExtension `` to your Jinja2 environment.
91
91
92
92
Templates
93
93
---------
Original file line number Diff line number Diff line change
1
+ <link href =" {{ url }}" rel =" stylesheet" type =" {{ type }}" {% if media %} media =" {{ media }}" {% endif %}{% if charset %} charset =" {{ charset }}" {% endif %} />
Original file line number Diff line number Diff line change
1
+ <script {% if async %} async{% endif %}{% if defer %} defer{% endif %} type =" text/javascript" >
2
+ {{ source|safe }}
3
+ </script >
Original file line number Diff line number Diff line change
1
+ <script {% if async %} async{% endif %}{% if defer %} defer{% endif %} type =" {{ type }}" src =" {{ url }}" charset =" utf-8" ></script >
Original file line number Diff line number Diff line change 5
5
6
6
from django .contrib .staticfiles .storage import staticfiles_storage
7
7
8
- from pipeline .packager import PackageNotFound
9
- from pipeline .utils import guess_type
10
- from pipeline . templatetags .pipeline import PipelineMixin
8
+ from . .packager import PackageNotFound
9
+ from . .utils import guess_type
10
+ from .pipeline import PipelineMixin
11
11
12
12
13
13
class PipelineExtension (PipelineMixin , Extension ):
Original file line number Diff line number Diff line change 6
6
from django .template import Template , Context
7
7
from django .test import TestCase
8
8
9
- from pipeline .jinja2 .ext import PipelineExtension
9
+ from pipeline .templatetags .ext import PipelineExtension
10
10
11
11
from tests .utils import pipeline_settings
12
12
You can’t perform that action at this time.
0 commit comments