Skip to content

Externalize themes in independant packages. #4

@flowgunso

Description

@flowgunso

In the official .js implementation, any theme installed system-wide that is named jsonresume-theme-.* can be used. Following that behavior could be favorable. It shouldn't be very hard but could ease the management of this project in different ways:

  • Each official default theme you already wrote in resume_json/templates/ would have its own repository. The cli and themes would be autonomous. But, having them in a requirements.txt file in the cli would still make them available by default.
  • Original creators of themes may be interested in using the Jinja2 template engine instead of the obsolete Handlebars one in .js.
  • Other people may be interested in contributing their own theme, which could then be used easily.

That kinda goes against what I wrote #1 and #2, but meh.

The implementation in the cli would rely on using several PackageLoader. But that also means creating new repository for existing themes.

https://github.com/jsonresume/resume-cli/blob/c5d057eba6dda1485d6a207a0bc12935806de414/lib/main.js#L17-L26
That's essentially the official implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions