infuse v0.1.2 Infuse.Simplates.Pagination

Summary

Functions

Organize pages into code and templates

Organize simplates templates into their associated mime types

If there’s one page, it’s a template. If there’s more than one page, the first page is always code and the last is always a template. If there’s more than two pages, the second page is code unless it has a specline, which makes it a template

Functions

organize_pages(pages)

Organize pages into code and templates.

organize_templates(pages)

Organize simplates templates into their associated mime types

parse_pages(raw)

If there’s one page, it’s a template. If there’s more than one page, the first page is always code and the last is always a template. If there’s more than two pages, the second page is code unless it has a specline, which makes it a template