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

[FEATURE] Add path to jupy HTMX #503

Open
2 tasks done
Isaac-Flath opened this issue Oct 8, 2024 · 0 comments
Open
2 tasks done

[FEATURE] Add path to jupy HTMX #503

Isaac-Flath opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Isaac-Flath
Copy link
Contributor

Is your feature request related to a problem? Please describe.
the HTMX function to run app in a notebook does not allow for passing a path (though Hamel has a clever hack of passing port=8000/route). To make this cleaner, we should add a path that you can pass to HTMX to load a particular route in the iframe.

Describe the solution you'd like
HTMX() -> Loads / route in iframe
HTMX(myroute) -> loads /myroute` in iframe

Example code
Provide an example of how you imagine the feature working:

HTMX('myroute')

Problem solved
It would make using fastHTML apps in jupyter notebooks cleaner.

Additional context
Screenshot 2024-10-08 at 7 18 01 PM

Confirmation
Please confirm the following:

  • I have checked the existing issues and pull requests to ensure this feature hasn't been requested before.
  • I have read the project's documentation to ensure this feature doesn't already exist.
@Isaac-Flath Isaac-Flath added the enhancement New feature or request label Oct 8, 2024
@Isaac-Flath Isaac-Flath self-assigned this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant