Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Wok trying to read Vim swap files as content #12

Closed
robatron opened this issue May 8, 2011 · 1 comment
Closed

Wok trying to read Vim swap files as content #12

robatron opened this issue May 8, 2011 · 1 comment
Labels

Comments

@robatron
Copy link
Contributor

robatron commented May 8, 2011

Wok trys to read Vim swap files as content/templates. Results in an error similar to this:

Warning from metadata: You didn't specify a title in  .index.mkd.swp. Using the file name as a title.
Traceback (most recent call last):
  File "../wok/wok/wok.py", line 82, in <module>
    Wok()
  File "../wok/wok/wok.py", line 26, in __init__
    self.render_site()
  File "../wok/wok/wok.py", line 78, in render_site
    p.render()
  File "/home/rob/wok/wok/page.py", line 157, in render
    self.html = template.render(templ_vars)
  File "/usr/lib/pymodules/python2.7/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "templates/default.html", line 7, in top-level template code
    {{ page.content }}
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 16: ordinal not in range(128)
@robatron robatron closed this as completed May 8, 2011
@robatron robatron reopened this May 8, 2011
@robatron
Copy link
Contributor Author

robatron commented May 8, 2011

Oops, didn't mean to close the ticket.

robatron pushed a commit to robatron/wok that referenced this issue May 8, 2011
…, e.g. Vim swap files in the 'content' folder.
@mythmon mythmon closed this as completed May 8, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants