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

accept app root path as kwarg to dash() method #233

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ JSON3 = "1.9"
MD5 = "0.2"
YAML = "0.4.7"
julia = "1.6"
Base64 = "1.6"
Pkg = "1.6"
Sockets = "1.6"
Test = "1.6"
UUIDs = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
4 changes: 3 additions & 1 deletion src/app/dashapp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ If a parameter can be set by an environment variable, that is listed as:
Values provided here take precedence over environment variables.

# Arguments
- `app_root::String` - a path, usually the current working directory, relative to which other folders are determined. Auto detected by default.
- `assets_folder::String` - a path, relative to the current working directory,
for extra files to be used in the browser. Default `'assets'`. All .js and .css files will be loaded immediately unless excluded by `assets_ignore`, and other files such as images will be served if requested.

Expand Down Expand Up @@ -282,6 +283,7 @@ If a parameter can be set by an environment variable, that is listed as:
clientside callback.
"""
function dash(;
app_root = app_root_path(),
external_stylesheets = ExternalSrcType[],
external_scripts = ExternalSrcType[],
url_base_pathname = dash_env("url_base_pathname"),
Expand Down Expand Up @@ -327,6 +329,6 @@ function dash(;
compress,
update_title
)
result = DashApp(app_root_path(), isinteractive(), config, index_string)
result = DashApp(app_root, isinteractive(), config, index_string)
return result
end