Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
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
OpenEdx
pystache_custom
Commits
73f05e04
Commit
73f05e04
authored
Dec 13, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor clean-up like changes to the beginning of pystache/commands.py.
parent
f8d1ac65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
pystache/commands.py
+22
-2
No files found.
pystache/commands.py
View file @
73f05e04
from
pystache
import
Template
# coding: utf-8
"""
This module provides command-line access to pystache.
Run this script using the -h option for command-line help.
"""
# TODO: allow option parsing to work in Python versions earlier than
# Python 2.7 (e.g. by using the optparse module). The argparse module
# isn't available until Python 2.7.
import
argparse
import
argparse
import
json
import
json
from
loader
import
Loader
# We use absolute imports here to allow use of this script from its
# location in source control (e.g. for development purposes).
# Otherwise, the following error occurs:
#
# ValueError: Attempted relative import in non-package
#
from
pystache.loader
import
Loader
from
pystache.template
import
Template
def
main
():
def
main
():
parser
=
argparse
.
ArgumentParser
(
description
=
'Render a mustache template with the given context.'
)
parser
=
argparse
.
ArgumentParser
(
description
=
'Render a mustache template with the given 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