This is some fake data: <%=@require('faker').Name.findName()%>
<ul>
<% for i in [0..10]: %>
<li><%-@partial('faker.html.eco')%></li>
<% end %>
</ul>
<% for fakePerson in @fakePeople: %>
<%- @partial('person.html.eco', {person:fakePerson}) %>
<% end %>
> --
> You received this message because you are subscribed to the Google Groups
> "DocPad" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/docpad/-/wAFZG2M0YpEJ.
>
> To post to this group, send email to doc...@googlegroups.com.
> To unsubscribe from this group, send email to
> docpad+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/docpad?hl=en.
On Mon, Apr 16, 2012 at 4:45 AM, Benjamin Lupton <balu...@gmail.com> wrote:
> This is some fake data: <%=@require('faker').Name.findName()%>
I am getting this error:
Something went wrong while rendering: src/partials/person.html.eco
error: An error occured: Object #<Object> has no method 'require'
TypeError: Object #<Object> has no method 'require'
I am a n00b at eco, so clearly this is some syntax error on my part?
I am trying the simple way as I think this would be most useful for me.
On Mon, Apr 16, 2012 at 6:38 PM, Benjamin Lupton <balu...@gmail.com> wrote:
> Hrmmm, odd. Can you provide me with the project link (repo access) so I can
> take a look at the source?
Here it is: https://github.com/nimbupani/prototype/blob/master/src/documents/index.html.md.eco
This does not work for me, but doing this:
https://github.com/nimbupani/prototype/blob/master/src/partials/person.html.eco
works :///
<td><%= require('Faker').Name.findName() %> </td>
<td><%= @require('Faker').Name.findName() %> </td>
Hi Benjamin