]> Pileus Git - vpaste/commit
Add view command, embedding, and caching
authorAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 05:32:57 +0000 (05:32 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 05:43:00 +0000 (05:43 +0000)
commitbe9a79188b57c09b9232ab2dc6984b1f938dd3ee
tree37ba564e95876e8c3ca9823ea460efed77909108
parent22626be0dfe53927e7a440073cbcbd29d44dd949
Add view command, embedding, and caching

This is mostly related to embedding pastes in external pages. Script
tags can be used to link an existing paste, or format a new paste based
on the text enclosed in the script tag. Code tags can be converted to
pastes as well.

When formatting text that is not in an existing paste, the text is not
saved and is not shown on the main page. This is done using the view
command.

Additionally, caching was added to improve load times, specifically for
text enclosed in script/code tags. The TOhtml output is saved in a file
based on the md5sum of the text and some system version information.

A new response function was also added to simplify some processing. It
combines the message and header functions and supports additional things
like gzipped input files (for cached pages) and Access Control headers.
.gitignore
embed.js [new file with mode: 0644]
index.cgi
vimrc