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

Make using json data more convention based #8

Open
rsleggett opened this issue Jan 16, 2017 · 1 comment
Open

Make using json data more convention based #8

rsleggett opened this issue Jan 16, 2017 · 1 comment

Comments

@rsleggett
Copy link
Contributor

Currently have to specify full path to view and json path is a little "magic"

Need to get closer to existing handle bars call.

@rsleggett
Copy link
Contributor Author

rsleggett commented Jan 17, 2017

Existing calls in handlebars look like:

{{>feature features.feature_text_centre_a}}

Here "feature" is the partial, features is the json file and "feature_text_centre_a" is the json path.

What I currently have is:

@Component.Render( viewName : "~/Views/Components/content-cards/content-cards.cshtml", 
                       componentPath : "content-cards.contentCards.blockA")

So it's not far off, but the viewName should just be "content-cards" in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant