{"action":"created","issue":{"url":"https://api.github.com/repos/chamnap/liquid-rails/issues/21","repository_url":"https://api.github.com/repos/chamnap/liquid-rails","labels_url":"https://api.github.com/repos/chamnap/liquid-rails/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/chamnap/liquid-rails/issues/21/comments","events_url":"https://api.github.com/repos/chamnap/liquid-rails/issues/21/events","html_url":"https://github.com/chamnap/liquid-rails/issues/21","id":160096708,"number":21,"title":"Liquid-Rails doesn't pull templates from resolvers","user":{"login":"Stickiler","id":910161,"avatar_url":"https://avatars.githubusercontent.com/u/910161?v=3","gravatar_id":"","url":"https://api.github.com/users/Stickiler","html_url":"https://github.com/Stickiler","followers_url":"https://api.github.com/users/Stickiler/followers","following_url":"https://api.github.com/users/Stickiler/following{/other_user}","gists_url":"https://api.github.com/users/Stickiler/gists{/gist_id}","starred_url":"https://api.github.com/users/Stickiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stickiler/subscriptions","organizations_url":"https://api.github.com/users/Stickiler/orgs","repos_url":"https://api.github.com/users/Stickiler/repos","events_url":"https://api.github.com/users/Stickiler/events{/privacy}","received_events_url":"https://api.github.com/users/Stickiler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-14T04:49:31Z","updated_at":"2016-11-26T02:44:29Z","closed_at":null,"body":"With an app we're currently building, we use a Panoramic resolver to pull our templates from the database instead of the filesystem, as we allow templates to be changed on the fly. \n\nOur main problem is that liquid-rails doesn't pull templates using the resolver, for any templates included inside other templates. The main template called from the rails controller itself pulls from the database fine, but the partials that are included inside that template continue to pull from the filesystem instead.\n\nAny thoughts on ways to get this working?\n"},"comment":{"url":"https://api.github.com/repos/chamnap/liquid-rails/issues/comments/263040223","html_url":"https://github.com/chamnap/liquid-rails/issues/21#issuecomment-263040223","issue_url":"https://api.github.com/repos/chamnap/liquid-rails/issues/21","id":263040223,"user":{"login":"Stickiler","id":910161,"avatar_url":"https://avatars.githubusercontent.com/u/910161?v=3","gravatar_id":"","url":"https://api.github.com/users/Stickiler","html_url":"https://github.com/Stickiler","followers_url":"https://api.github.com/users/Stickiler/followers","following_url":"https://api.github.com/users/Stickiler/following{/other_user}","gists_url":"https://api.github.com/users/Stickiler/gists{/gist_id}","starred_url":"https://api.github.com/users/Stickiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stickiler/subscriptions","organizations_url":"https://api.github.com/users/Stickiler/orgs","repos_url":"https://api.github.com/users/Stickiler/repos","events_url":"https://api.github.com/users/Stickiler/events{/privacy}","received_events_url":"https://api.github.com/users/Stickiler/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T02:44:29Z","updated_at":"2016-11-26T02:44:29Z","body":"@sonnypgs Liquid-Rails has it's own resolver definition in it's code that it uses instead of using the Rails resolvers. The solution I ended up needing was forking the liquid-rails repo, and modifying some of the code to properly use the rails resolvers instead of hard-coding a filesystem resolver for the templates. I started with the code from #9 , then added the new Liquid::Rails::ResolverSystem file as the default resolver in the liquid-rails code."}}
{"actor":{"display_login":"Stickiler"}}