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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] User can override templates for table and graph #7176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very nice.
Is it possible to implement the use case of using custom .js and .css files for the templates? Not embedded in the html, but as separate files. This was already a request in the past, and will certainly be requested again over this new functionality if people use it.
Yes, it requires just one more variable from our side. With this feature the user can write whatever they want in the
|
Changelog: Feature: Templates for
conan search --table
andconan info --graph
can be overridden by the user.Docs: conan-io/docs#1739
馃幎 Unblocks PR #6815 (although it has to be rewritten)
Add
base_template_path
to context: path to the folder where the template file is located.Unit-testing graph objects (table too, but there is already something)
After #6833 and #6832 next step is to let the user override default templates with a custom one. This PRs will look into
<cache_folder>/templates
directory for the templates before using the Conan provided ones. Current templates that can be overridden are:<cache_folder>/templates/output/search_table.html
: table output<cache_folder>/templates/output/info_graph.dot
: graph output in graphviz format<cache_folder>/templates/output/info_graph.html
: graph output in HTML formatThis PR will require to document the context for these templates and unit-testing for those objects