Module: Yuzu::Generators

Includes:
Filters, Registrar
Included in:
Core::SiteRoot
Defined in:
lib/yuzu/generators/base.rb,
lib/yuzu/generators/index.rb,
lib/yuzu/generators/paginate.rb,
lib/yuzu/generators/category_folders.rb

Defined Under Namespace

Classes: CatalogPaginator, CategoryFoldersGenerator, GeneratedFolder, GeneratedIndex, Generator, IndexGenerator, PaginateGenerator

Constant Summary

Constants included from Core

Core::BOLD, Core::ENDC, Core::WHITE

Class Method Summary collapse

Methods included from Filters

catalog_for, get_kwds

Methods included from Core

get_paginated_path

Class Method Details

.category_index_template(relative_contents_path, category_name) ⇒ Object



111
112
113
114
115
# File 'lib/yuzu/generators/index.rb', line 111

def category_index_template(relative_contents_path, category_name)
    "TEMPLATE(blog.haml)

INSERTCATALOG(path:#{relative_contents_path}, page:1, per_page:10, per_col:1, template:_blog.haml, category:#{category_name})"
end

.default_blog_index_template(relative_contents_path) ⇒ Object



104
105
106
107
108
# File 'lib/yuzu/generators/index.rb', line 104

def default_blog_index_template(relative_contents_path)
    "TEMPLATE(blog.haml)

INSERTCATALOG(path:#{relative_contents_path}, page:1, per_page:10, per_col:1, template:_blog.haml)"
end

.default_index_template(relative_contents_path) ⇒ Object

TODO Put the auto-generated index contents in their own files.



97
98
99
100
101
# File 'lib/yuzu/generators/index.rb', line 97

def default_index_template(relative_contents_path)
    "TEMPLATE(index.haml)

INSERTCATALOG(path:#{relative_contents_path}, page:1, per_page:10, per_col:1, template:_block.haml)"
end