Module: Yuzu::Generators
- 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
- .category_index_template(relative_contents_path, category_name) ⇒ Object
- .default_blog_index_template(relative_contents_path) ⇒ Object
-
.default_index_template(relative_contents_path) ⇒ Object
TODO Put the auto-generated index contents in their own files.
Methods included from Filters
Methods included from Core
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 |