3 ms·
I agree, it could be a little more explained. Thanks for the input! I'm not sure if rails does this out of the box, but the thinking is to integrate it into a
by jsonmaur 11y ago
I agree, it could be a little more explained. Thanks for the input!
I'm not sure if rails does this out of the box, but the thinking is to integrate it into a deployment system for sites built without frameworks like Rails (static marketing sites, for example). A general purpose URL transformer would be interesting. Do you have any use cases outside of prepending you can see it being useful for?
- Cheezmeister 11y agoOff the top of my head, not many. One might be densely cross-linked documentation markup stored on GitHub but officially published elsewhere. If you have reason to use absolute paths and want your docs navigable everywhere, you need to do something to about the `/$USER/repo/blob/master` vs. `/doc/wiki` (or whatever). Or, to ease writing said docs, you might wish to resolve "fake" urls like `wiki:Batman`, which should point at https://en.wikipedia.org/wiki/Batman https://en.wikipedia.org/wiki/Batman ...which I guess still amounts to prepending, doesn't it?
- jsonmaur 11y agoGreat ideas, thanks :)