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

Unnamed folder under js template #681

Closed
GavinLeongMO opened this issue Jul 26, 2023 · 0 comments
Closed

Unnamed folder under js template #681

GavinLeongMO opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@GavinLeongMO
Copy link

def as_script_src(self,file_name:str, indent:str="  ", subdir=""):
        src= f"{indent}<script src='/templates/js{subdir}/{file_name}.js'></script>\n"
        return src

This function returns src as "/templates/js//event_handler.js" and "/templates/js//justpy_core.js", which creates an unnammed folder under the js template in the page source of Chrome developer tools if the subdir is an empty string.

@GavinLeongMO GavinLeongMO changed the title Fixed unnamed folder under js template Unnamed folder under js template Jul 26, 2023
@WolfgangFahl WolfgangFahl added the bug Something isn't working label Jul 26, 2023
@WolfgangFahl WolfgangFahl added this to the 0.13 milestone Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants