Comments (3)
Repro w/ punch @ 0.1.2
Simple setup:
$ find .
.
./config.json
./contents
./contents/index.json
./public
./public/index.html
./templates
./templates/index.mustache
$ cat contents/index.json
{"title": "demo"}
$ cat templates/index.mustache
<h1>{{title}}</h1>
$ punch .
Generating Site...
Created public/index.html
Simulate editing index.mustache with vim by creating a dummy swap file:
$ touch templates/.index.mustache.swp
$ find . -iname \*.swp
./templates/.index.mustache.swp
$ punch .
Generating Site...
/usr/local/lib/node_modules/punch/lib/punch.js:32
return (new self.registeredRenderers[content_type]);
^
TypeError: undefined is not a function
at Object.rendererFor (/usr/local/lib/node_modules/punch/lib/punch.js:32:13)
at Object.fetchAndRender (/usr/local/lib/node_modules/punch/lib/punch.js:258:25)
at /usr/local/lib/node_modules/punch/lib/punch.js:348:20
at Array.forEach (native)
at Object.oncomplete (/usr/local/lib/node_modules/punch/lib/punch.js:344:15)
from punch.
Hi John,
Thanks for the detailed ticket on the issue. I posted a fix to solve this issue. If you upgrade Punch (0.1.3) from NPM it should contain the fix.
However, please note still the .swp
files are being copied to the output directory. You may avoid them from publishing by adding them to the .gitignore
file (assuming you are using a SCM to publish your site) or use a bash script to prune them from the output directory.
from punch.
Thanks for the quick turnaround!
from punch.
Related Issues (20)
- TypeError: Cannot call method 'getTime' of null HOT 5
- Ability to add self-contained widgets (css, js, template) HOT 2
- Issues displaying {{date}} HOT 2
- style failed to compile HOT 2
- Cannot start server Connect has no method 'logger' HOT 1
- Can't get this working in a docker container
- Pulling bundle assets from outside local directory
- Punch Plugin: How to find the file path to the "templates" directory? HOT 2
- S3 gzip support
- Failed to read the configurations. HOT 1
- Copy command fails with paths that contain spaces HOT 1
- Failing basic setup HOT 2
- Trouble Implementing Autoprefixer compiler/minifier
- is this still happening? HOT 1
- Themes?
- What is the best practice for i18n?
- Creating intro.markdown in contents/_index during tutorial doesn't render the HTML HOT 1
- Custom compiler works only on generate HOT 4
- Javascript does not bundle HOT 1
- Mime.extension and Mime.lookup is not a function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from punch.