You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1631 Adds support for a template-defining metadata file, _template.json, stored at the root of the template folder. After #1631, we'll use this template file to find all templates in a remote template repo, allowing us to create a menu of choices in shiny create, e.g.
❯ shiny create --github posit-dev/py-shiny-templates@template-json
ℹ Using GitHub repository posit-dev/py-shiny-templates@template-json.
? Which template would you like to use?: (Use arrow keys)
» A Basic app
Basic reactive plot
Navigating multiple panels
Reactive plot in sidebar
Basic dashboard
Restaurant tips dashboard
SQL database explorer
Location distance calculator
Model scoring
Streaming database updates
Streaming file updates
Streaming folder updates
NBA player career comparisons
Article on regularization in ML
Stock price tracker
Survey form
Survey wizard form
[Cancel]
As seen in the example above, it would be helpful to have submenus, e.g.
❯ shiny create --github posit-dev/py-shiny-templates@template-json
ℹ Using GitHub repository posit-dev/py-shiny-templates@template-json.
? Which template would you like to use?: (Use arrow keys)
» Basic apps...
Dashboards...
Streaming updates...
Data entry...
[Cancel]
As a first approximation, we could organize the templates into subfolders, so that instead of this (considering only streaming/data-entry apps):
In shiny create, we'd have to change how we discover templates, but in walking the templates directory, we could find these type: "submenu" templates and render them as submenus.
This approach is compatible with the _template.json used in #1631 as well as the --github {owner}/{repo}:{path} syntax and importantly could be added later without breaking syntax introduced in #1631.
The text was updated successfully, but these errors were encountered:
#1631 Adds support for a template-defining metadata file,
_template.json
, stored at the root of the template folder. After #1631, we'll use this template file to find all templates in a remote template repo, allowing us to create a menu of choices inshiny create
, e.g.As seen in the example above, it would be helpful to have submenus, e.g.
As a first approximation, we could organize the templates into subfolders, so that instead of this (considering only streaming/data-entry apps):
we'd have this
At the root of
data-entry/
andstreaming/
, we could include an additional_template.json
withtype: "submenu"
, e.g.In
shiny create
, we'd have to change how we discover templates, but in walking the templates directory, we could find thesetype: "submenu"
templates and render them as submenus.This approach is compatible with the
_template.json
used in #1631 as well as the--github {owner}/{repo}:{path}
syntax and importantly could be added later without breaking syntax introduced in #1631.The text was updated successfully, but these errors were encountered: