Tumulus 0.1.3

Tumulus is an alternative to Templating languages found in many templating engines such as Jinja2, Django, Mako, ...Such templating engines make it difficult to separate logical elements of the page, hence discouraging reusability.

The motivation behind Tumulus is to encourage developers to build reusable web components that can then beput together to build web pages or applications.

def bootstrap_button(text): '''Returns a Bootstrap formatted button, and adds the CSS of Bootstrap to the dependencies of the page.''' return t.div( # Standard HTML button with 'text' inside: t.button(text, class_='btn btn-info'), # Injecting Bootstrap's CSS file in the HTML head. # This can be done almost anywhere, as it will be included # somewhere else, and there is de-duplication. lib.css('bootstrap') );