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

fastn.dynamic-urls should give precedence to real files #2048

Open
siddhantk232 opened this issue Jan 12, 2025 · 0 comments
Open

fastn.dynamic-urls should give precedence to real files #2048

siddhantk232 opened this issue Jan 12, 2025 · 0 comments
Assignees

Comments

@siddhantk232
Copy link
Contributor

;; FASTN.ftd
-- import: fastn

-- fastn.package: test

-- fastn.dynamic-urls:

# handler
url: /handler/<string:id>/
document: handler/main.ftd
;; handler/main.ftd
-- import: fastn/processors

-- string id:
$processor$: processors.request-data


-- ftd.text: # Handler all for
-- ftd.text: $id
;; handler/new.ftd
-- ftd.text: # New handler

Visiting /handler/new/ should render the handler/new.ftd but it renders handler/main.ftd file with "new" passed as id.

@siddhantk232 siddhantk232 self-assigned this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant