jinjardf

Table of Contents

jinjardf.theme

Theme Objects

class Theme(object)

A theme contains templates for use with the JinjaRDF site builder.

Attributes:

__init__

def __init__(package: str,
             name: str = None,
             template_path: str = 'templates',
             asset_path: str = 'assets',
             config_path: str = 'config')

Initialize the theme

Arguments:

resolve_package

def resolve_package() -> Traversable

Take self.package and resolve to its location as a Traversable, regardless of having been installed in editable mode or not.

Returns:

copy_templates

def copy_templates(target_folder: str) -> list

Copy the theme’s templates to a subfolder in the site generator’s template folder.

Arguments:

Returns:

copy_assets

def copy_assets(target_folder: str) -> list

Copy the theme’s assets to a subfolder in the site generator’s asset folder.

Arguments:

Returns:

copy_config

def copy_config(target_folder: str) -> list

Copy the theme’s config to a subfolder in the site generator’s config folder.

Arguments:

Returns: