Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c790d626
Commit
c790d626
authored
Jun 04, 2013
by
Nate Hardison
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #59 from edx/nate/comment-atop-generated-asset-files
Add comment to dynamically-generated asset files
parents
779f86c4
7bccce4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
common/djangoapps/mitxmako/management/commands/preprocess_assets.py
+8
-0
No files found.
common/djangoapps/mitxmako/management/commands/preprocess_assets.py
View file @
c790d626
...
...
@@ -14,6 +14,7 @@ from django.core.management.base import NoArgsCommand
from
django.conf
import
settings
from
mako.template
import
Template
import
textwrap
class
Command
(
NoArgsCommand
):
"""
...
...
@@ -61,5 +62,12 @@ class Command(NoArgsCommand):
result in `outfile`.
"""
with
open
(
outfile
,
"w"
)
as
_outfile
:
_outfile
.
write
(
textwrap
.
dedent
(
"""
\
/*
* This file is dynamically generated and ignored by Git.
* DO NOT MAKE CHANGES HERE. Instead, go edit its template:
*
%
s
*/
"""
%
infile
))
_outfile
.
write
(
Template
(
filename
=
str
(
infile
))
.
render
(
env
=
self
.
__context
()))
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