Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

zptlint

Script that runs the pagetemplate parser and output errors

Installation

Because zptlint depends on zope.pagetemplate, it depends on a lot of other zope eggs.

To avoid polluting you system python, you can install zptlint in a virtualenv:

$ virtualenv zptlint
$ cd zptlint/
$ bin/easy_install zptlint

Then make a link to the right script:

$ ln -s MYPATH/zptlint/bin/zptlint

Configuration in .vimrc

"page templates configuration
autocmd BufNewFile,BufRead *.pt,*.cpt,*.zpt setfiletype zpt
autocmd FileType zpt set
   \ makeprg=zptlint\ %
   \ errorformat=%+P***\ Error\ in:\ %f,%Z%*\\s\\,\ at\ line\ %l\\,\ column\ %c,%E%*\\s%m,%-Q

augroup filetype
  au BufWritePost,FileWritePost *.pt make
  au BufWritePost,FileWritePost *.cpt make
  au BufWritePost,FileWritePost *.zpt make
augroup END

Because zpt is defined as a new file type, you may want to copy syntax/html.vim to syntax/zpt.vim and ftplugin/html.vim to ftplugin/zpt.vim.

or usage from command-line in vim:

set makeprg=zptlint\ %
set errorformat=%+P***\ Error\ in:\ %f,%Z%*\\s\\,\ at\ line\ %l\\,\ column\ %c,%E%*\\s%m,%-Q

Credits

  • code by Balazs Ree, Greenfinity

  • eggified by Godefroid Chapelle, BubbleNet

Release files for zptlint 0.1dev-r1889

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for zptlint 0.1dev-r1889
File Interpreter ABI Platform
zptlint-0.1dev_r1889-py2.4.egg Legacy Egg format - - Details

Release files / zptlint-0.1dev_r1889-py2.4.egg

Download URL zptlint-0.1dev_r1889-py2.4.egg
Size 3.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
59300cff14a2763edb2184981b0e898a9cc53abca3e876a025ad3e73e502abab
BLAKE2b-256 checksum
How to use checksums
6b6a6a3f6f0d17d7ff870b708e8296010c55eec76643bc350afb3c22b4d58723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

This release

0.1dev-r1889 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page