Yeah it is rather specific, although it is fairly trivial to implement. There is a file bin read in the template renderer, basically all that needs to happen is that you check if it is a symlink before that and resolve the symlink before reading the file. My reason for bringing it to the core group is that symlinks are a pretty standard feature of the file system so I sort of expected them to just be followed.
On Thursday, August 31, 2017 at 10:04:27 AM UTC-4, Andrew Kaspick wrote: > > Sounds like some pretty specific requirements for what you need which is a > good candidate for an external gem. > > On Thu, Aug 31, 2017 at 10:22 AM, Cory Gwin <gwin...@gmail.com > <javascript:>> wrote: > >> I also think partials will be problematic because we don't want the >> templates themselves to be in the look up path for Rails. >> >> >> On Wednesday, August 30, 2017 at 9:21:44 AM UTC-4, Cory Gwin wrote: >>> >>> Hello, >>> >>> I am exploring a possible feature for an app I am working on. Ideally we >>> would like to be able to symlink templates so we can use them in multiple >>> paths easily, partials are not really a good option for our use case. I >>> have written a custom template resolver built on top of >>> ActionView::PathResolver to accomplish this. I was speaking with >>> eileencodes about this feature and trying to explore the idea of Rails >>> having native support for this, she said I should start a discussion here. >>> >>> What do people think? I would love to have this natively supported and >>> would be more than happy to work on a PR. >>> >>> Thanks, >>> Cory >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-co...@googlegroups.com <javascript:>. >> To post to this group, send email to rubyonra...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/rubyonrails-core. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.