Skip to content

Support rendering static files non root directories #71

Description

@sarge

Currently only static filename.jet templates get rendered if they are in the root path.

This is managed by
https://github.com/shift72/kibble/blob/master/kibble/render/render.go#L129-L152

To render files in other directories we could do one of 3 things.
a) provide a list of directories to check
b) check all directories except the convention of templates
c) refactor the rendering into a datasource being FileSystem. This will find all jet files in the folder and render them

 {
            "name": "dir1",
            "urlPath": "/dir1",
            "datasource": "FileSystem"
 },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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