Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-UI templates should not be duplicated #1120

Open
virtualtam opened this issue Apr 3, 2018 · 5 comments
Open

Non-UI templates should not be duplicated #1120

virtualtam opened this issue Apr 3, 2018 · 5 comments
Labels
cleanup code cleanup and refactoring template HTML rendering tools developer tools

Comments

@virtualtam
Copy link
Member

The following templates are present in both default and vintage resource directories:

  • dailyrss.html
  • feed.atom.html
  • feed.rss.html
  • export.bookmarks.html

As they do not contain any theme-specific content, and are not likely to be overridden by 3rd-party template developers, they should be refactored and/or moved to a separate directory (e.g. common/).

@virtualtam virtualtam added cleanup code cleanup and refactoring tools developer tools template HTML rendering labels Apr 3, 2018
@virtualtam virtualtam changed the title Non-UI templates are duplicated Non-UI templates should not be duplicated Apr 3, 2018
@ArthurHoaro
Copy link
Member

ArthurHoaro commented Apr 4, 2018

It's a good idea but I think it'll be a bit complicated because RainTPL expect one template directory, so we'll have to change it depending on the page we're on. Also, custom themes should still be able to override these common templates.

@virtualtam
Copy link
Member Author

Given these templates are quite simple, we could avoid using RainTPL (or have a dedicated instance for these use cases) and move the rendering part to the respective classes (FeedBuilder, NetscapeBookmarkUtils, etc.), which would also make sense from an OOP point of view.

Is there an actual benefit in allowing to override feeds' and bookmark exports' content?

@ArthurHoaro
Copy link
Member

I don't think there is an existing use case, but one could want to have custom things in their RSS feed. Could symlink be an option?

@virtualtam
Copy link
Member Author

Symlinks would be an issue for Windows + Git users, as you need special privileges to create them:

This would also be an issue for repository and release archives.

I'm not sure how many people actually rely on feeds, but I don't think it would be too bold to say that there would be little interest in further customizing feed content (besides through supported plugins such as Markdown).

@ArthurHoaro
Copy link
Member

Windows. ◕‿◕✿
But yes, I agree. In any case, modifying feeds content is doable through plugins.

@nodiscc nodiscc added this to the backlog to the future milestone May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup code cleanup and refactoring template HTML rendering tools developer tools
Projects
None yet
Development

No branches or pull requests

3 participants