View, Template, Partial rendering

19 views
Skip to first unread message

Cross X

unread,
Sep 10, 2014, 10:22:03 AM9/10/14
to pak...@googlegroups.com
Hi,

Sorry if these trivial issues.
Unfortunately not fully understand the Pakyow documentation.

My questions is:

  1. How to render a view (in subfolder also too)?
  2. How to render another template instead of "pakyow.html" (in subfolder also too)?
  3. How to include a HTML file as partial (with variables)?


Thank you!

Bryan Powell

unread,
Sep 11, 2014, 7:10:24 PM9/11/14
to pak...@googlegroups.com
Hello,

I'll do my best to answer your questions, but a sample view hierarchy would be really helpful to make sure we're on the same page.

1. Can you clarify? A sample hierarchy might help me better understand the question.
2. Use front-matter in the page to define the template, like this: https://gist.github.com/bryanp/5b873f881b143818002b (this assumes there's a foo.html template in the _templates directory).
3. You can't include a partial with variables, since views aren't aware of specific data in that way.

Happy to help any way I can.

Bryan P.

--
You received this message because you are subscribed to the Google Groups "Pakyow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pakyow+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages