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

Error : Partial template not found #354

Closed
geotry opened this issue May 5, 2013 · 1 comment
Closed

Error : Partial template not found #354

geotry opened this issue May 5, 2013 · 1 comment

Comments

@geotry
Copy link

geotry commented May 5, 2013

Hi,
I'm new with geddy so I followed the tutorial here http://geddyjs.org/tutorial
Here's what I did:

$ npm install -g geddy
$ geddy app myApp
$ cd myApp
$ geddy

And here's what I get when I reach localhost:4000:

Error: 500 Internal Server Error

Error: Partial template "app/views/main/index" not found in app\views, app/views/main and app/views/layouts
at Error.errorConstructor (C:\Users\***\AppData\Roaming\npm\node_modules\geddy\lib\response\errors.js:44:13)
at Partial.getTemplateData (C:\Users\***\AppData\Roaming\npm\node_modules\geddy\lib\template\partial.js:86:15)
at Partial.render (C:\Users\***\AppData\Roaming\npm\node_modules\geddy\lib\template\partial.js:97:29)
at C:\Users\***\AppData\Roaming\npm\node_modules\geddy\lib\template\partial.js:138:15
at Array.forEach (native)
at Partial.renderChildren (C:\Users\***\AppData\Roaming\npm\node_modules\geddy\lib\template\partial.js:137:16)
at handleData (C:\Users\***\AppData\Roaming\npm\node_modules\geddy\lib\template\partial.js:102:16)
at C:\Users\***\AppData\Roaming\npm\node_modules\geddy\lib\template\partial.js:119:9
at fs.js:252:14
at Object.oncomplete (fs.js:93:15)

Of course, I found my views files where it seems to look.
I had some errors when installing geddy (about 'pg_config') but I don't think there is a link.

$ node -v
0.10.0
$ geddy -v
0.8.3

I'm running under Windows 7 64 bits.

Thank you for your help!

mde pushed a commit that referenced this issue May 5, 2013
@mde
Copy link
Contributor

mde commented May 5, 2013

This was a Windows-specific bug from our massive refactor of the templating code. Fixed in 9564537, pushed to NPM in v0.8.4. Thanks a lot!

@mde mde closed this as completed May 5, 2013
rtgibbons added a commit to cpbtechnology/geddy that referenced this issue May 10, 2013
* geddy/master: (208 commits)
  Added auth task back to gen namespace
  reverse engine and realtime to match _taskArgsMap
  fix scaffolding - modelProperties are getting passed in as the second argument, not the fourth
  Removed array datatype from docs
  Add tests to ensure before-filters after a skipped filter still get called
  Adapter constructor
  More swig changes from Larz
  Fix bug where a skipped filter would cause all filters after it to be skipped no matter what, and would be skipped if it was an array that was incorrectly interpreted as a truthy value when checked against the action.
  Version 0.8.4
  Issue geddy#354 -- normalize paths, fix Windows breakage
  Fix reference error, require helpers to use getRoutes function for routes command
  fix typo and add check for existing swig template when scaffolding
  add swig option
  remove extends/block
  remove custom 'javascript' response left over from an old project; add swig back in after merge; update docs and CLI help for swig
  use view helper functions for scripts/styles; address other feedback from @larzconwell; revert accidental Makefile change
  update swig to use same pattern as other geddy templating engines
  Fix Cmd tests
  Version 0.8.3
  Handle empty data object passed to template
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants