Skip to content
Discussion options

You must be logged in to vote

@Jonic that's an interesting proposal. I'd be curious to hear why you'd like to have the templates in another directory.

The reason we explicitly require colocation of ViewComponent templates is that they are compiled and executed within the context of the ViewComponent object, and thus behave differently than if they were rendered with the traditional Rails stack.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@pinzonjulian
Comment options

@Jonic
Comment options

@joelhawksley
Comment options

Answer selected by joelhawksley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants