Commit 73f05e04 by Chris Jerdonek

Minor clean-up like changes to the beginning of pystache/commands.py.

parent f8d1ac65
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 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():
parser = argparse.ArgumentParser(description='Render a mustache template with the given context.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment