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

Drop secondary suffix from #relative_path_basename_without_prefix #773

Open
sandstrom opened this issue Jun 19, 2023 · 0 comments
Open

Drop secondary suffix from #relative_path_basename_without_prefix #773

sandstrom opened this issue Jun 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sandstrom
Copy link
Contributor

For example a file at src/_pages/features/security.multi.erb will return the following for these Resource methods:

  • #relative_path_basename_without_prefix => "features/cards.multi"
  • #relative_path => "_pages/features/cards.multi.erb"

Would it make more sense if relative_path_basename_without_prefix returned "features/cards" in this case?

I can open a PR to fix it, if you think this is a bug. If it isn't, I'm also fine with current behavior. Just wanted to ask.

@sandstrom sandstrom added the bug Something isn't working label Jun 19, 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

No branches or pull requests

1 participant