Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Baseframe for HasGeek projects
JavaScript CSS Python HTML Makefile Ruby
Failed to load latest commit information.
baseframe Rollback session if there's an error.
docs Bootstrap 3.0.0-rc1.
.coveragerc Include coverage reporting.
.gitignore Codemirror is now an external dependency; upgrade to 4.11.
.gitmodules Documented baseframe
.travis.yml Grr, ==, not !=
CHANGES.rst Changed auth, site-nav and network anchor tags to buttons in hgnav.
LICENSE.txt Bootstrap 3.0.0-rc1.
MANIFEST.in Include baseframe.forms in the manifest.
Makefile Codemirror is now an external dependency; upgrade to 4.11.
README.rst Include coverage reporting.
babel.cfg
babel.sh Updated i18n message list
config.rb Baseframe now requires apps to be hosted at the root of the domain
setup.cfg Fixed name in setup.cfg
setup.py Optional CSRF; removed Mustache dep

README.rst

Baseframe

Build status Coverage status

Reusable styles and templates for HasGeek projects. Setup instructions:

python setup.py install

You'll need this boilerplate in your code to use it:

from flask import Flask
from baseframe import baseframe, assets, Version

version = Version('0.1.0')  # Insert your app's version number here
app = Flask(__name__, instance_relative_config=True)

# Declare your app's assets (with .js and .css suffixes)
# Filenames are relative to your app's static folder
assets['myapp.js'][version] = 'js/myapp.js'
assets['myapp.css'][version] = 'css/myapp.css'

# Initialize baseframe with required JS/CSS assets
# The 'baseframe' requirement is optional: it gives you the default UI
baseframe.init_app(app, requires=['baseframe', 'myapp'])

Baseframe is BSD-licensed, but is built on top of Twitter Bootstrap 3.0 and bundles various JavaScript libraries which use BSD, MIT and Apache.

Something went wrong with that request. Please try again.