Skip to content
Snippets Groups Projects
README.md 775 B
Newer Older
Snippet Generator
=================

Introduction
------------

The **Snippet Generator** app creates inline-styled HTML snippets based on an
XML file that includes the following configuration for the template:

  * Title
  * Description
  * Options
  * Fields
  * CSS Styles
  * HTML Template

Installation
------------

The application will live in `/usr/local/apps/snippet-generator`.
`cd /usr/local/apps`

`virtualenv --no-site-packages snippet-generator`

`cd snippet-generator`

`. bin/activate`

`git clone git@git.psu.edu:trs22/snippet-generator.git app`

`pip install Flask Flask-Breadcrumbs BeautifulSoup premailer xmltodict`

In the Apache configuration for your site, add the line:

`Include /usr/local/apps/snippet-generator/app/conf/http.conf`
Reload Apache.