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 on install w/ -T basic #8

Open
konsumer opened this issue Dec 2, 2013 · 18 comments
Open

Error on install w/ -T basic #8

konsumer opened this issue Dec 2, 2013 · 18 comments

Comments

@konsumer
Copy link

konsumer commented Dec 2, 2013

Hi, I am getting an error on a fresh install, like this:

/Users/konsumer/Desktop/blog/blog.jetboystudio.com/node_modules/wintersmith-handlebars/wintersmith-handlebars.coffee:1
rts, require, module, __filename, __dirname) { handlebars = require 'handlebar
                                                                    ^^^^^^^^^^^^

  error Error loading plugin 'wintersmith-handlebars': Unexpected string

I am using it like this:

wintersmith new -T basic blog/
cd blog
wintersmith plugin install handlebars
((go make templates/index.html, and set index.md to use it))
wintersmith preview

My templates/index.html looks like this:

<html>
<head>
    <title>{{title}}</title>
</head>
<body>
    <header>
        <h1><a href="/">{{title}}</a></h1>
    </header>
    <section>
        <h2>{{page.title}}</h2>
        <article>{{page.html}}</article>
    </section>
</body>
</html>

and contents/index.md looks like this:


---
title: Wintersmith
template: index.html

---


Hello World
-----------

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@konsumer
Copy link
Author

konsumer commented Dec 2, 2013

blog project-template (the default) seems to work ok.

@Oreolek
Copy link

Oreolek commented Dec 10, 2013

Amusingly, the problem can disappear if you put wintersmith-less in front of wintersmith-handlebars

@konsumer
Copy link
Author

That is amusing! :)

@ianstormtaylor
Copy link

+1 also getting this

@ianstormtaylor
Copy link

this module shouldnt assume the parent is using coffeescript, it should depend on coffeescript itself

@ColemanGariety
Copy link
Collaborator

@ianstormtaylor skimming this issue it seems like it could be fixed by compiling to .js, is that correct? If so I'll fix it asap.

@ianstormtaylor
Copy link

hmm not sure, haven't used coffeescript with node enough to say 100%. but i stopped using wintersmith :///

@ColemanGariety
Copy link
Collaborator

@ianstormtaylor Ok, I'll take a look soon. Re: wintersmith... it's awfully hard to use, but I'm unaware of any alternative.

@ianstormtaylor
Copy link

got one coming soon for you ;)

@ColemanGariety
Copy link
Collaborator

@ianstormtaylor I am excited. 👍

@ianstormtaylor
Copy link

https://www.npmjs.org/search?q=metalsmith if you wanna sneak peak. still got a few more things to do before launching to everyone (namely actual docs, and a landing page). everything is a plugin so even markdown conversion and templating isn't baked in. basically the steps are just:

  1. read files
  2. run thru middleware stack
  3. write files

so any transforms can be done, so its super flexible — using it for our blog/academy already. migrating our docs over to it now as well

@ColemanGariety
Copy link
Collaborator

@ianstormtaylor looks cool, can't wait to try it.

@konsumer
Copy link
Author

Looks cool, but I can't seem to find any of it on github.

@ColemanGariety
Copy link
Collaborator

@konsumer probably a private repo in the segmentio organization 😇

@konsumer
Copy link
Author

@JacksonGariety ah, yeah, just noticed npm links are all to inaccessible segmentio repos.

@ianstormtaylor
Copy link

hopefully will be open sourced next couple weeks

@ianstormtaylor
Copy link

@JacksonGariety @konsumer just launched it :) http://metalsmith.io

@ColemanGariety
Copy link
Collaborator

@ianstormtaylor Looks sick, I'll try it out today.

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

4 participants