Skip to content

Examples unclear (room for docs!) #27

@AlbinoGeek

Description

@AlbinoGeek

Hello there!

It is unclear within some examples how the "Template Name" is being set.

While it is very obvious in the simple example:

r.AddFromFiles("index", "templates/base.html", "templates/index.html")
r.AddFromFiles("article", "templates/base.html", "templates/index.html", "templates/article.html")

It is not so obvious within the advanced example:

r.AddFromFiles(filepath.Base(include), files...)

And is further confused within the multibase example:

r.AddFromFiles(filepath.Base(article), files...)

r.AddFromFiles(filepath.Base(admin), files...)

(Not to mention the name conflicts possible within the multibase example, covered in another issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions