ponychicken / kirby-jade

Jade renderer for Kirby
MIT License
3 stars 0 forks source link

Problems getting to work with the starter kit. #1

Open lehni opened 8 years ago

lehni commented 8 years ago

I just wanted to try this out, and followed your description in the README to install and convert the Kirby Starterkit to work with Jade templates instead. But I can't get it to load. Do I need to activate the plugin somehow? What am I missing?

Fatal error: Uncaught Exception: The template could not be found in /Users/lehni/Sites/starterkit/kirby/kirby/component/template.php:78 Stack trace: #0 /Users/lehni/Sites/starterkit/kirby/kirby.php(619): Kirby\Component\Template->render(Object(Page), Array) #1 /Users/lehni/Sites/starterkit/kirby/kirby.php(607): Kirby->template(Object(Page), Array) #2 /Users/lehni/Sites/starterkit/kirby/kirby/component/response.php(29): Kirby->render(Object(Page)) #3 /Users/lehni/Sites/starterkit/kirby/kirby.php(686): Kirby\Component\Response->make(Object(Page)) #4 /Users/lehni/Sites/starterkit/index.php(16): Kirby->launch() #5 {main} thrown in /Users/lehni/Sites/starterkit/kirby/kirby/component/template.php on line 78

lehni commented 8 years ago

Alright, I figured it out. I would suggest adding these bits of information to the README:

e.g.

cd site
chmod go+w cache
git clone https://github.com/ponychicken/kirby-jade/ plugins/jade
rm templates/*.php
cp plugins/jade/examples/*.jade templates/
ponychicken commented 8 years ago

Sorry for the troubles. I'll check it out soon, bit busy now (uni degree next week!)

On 06 Jul 2016, at 17:03, Jürg Lehni notifications@github.com wrote:

Alright, I figured it out. I suggest adding these bits of information to the readme:

The plugin folder needs to be called jade, not kirby-jade The cache folders needs to be writeable. e.g.

cd site chmod go+w cache git clone https://github.com/ponychicken/kirby-jade/ plugins/jade rm templates/.php cp plugins/jade/examples/.jade templates/ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.