<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Project><name>ScriptTranscluder</name>
<shortdesc>Transclude content via &lt;script&gt; tags</shortdesc>
<description>Script Transcluder
==================

This simple script lets people include bits of your content (hosted on
whatever server you like) into their own pages.  It uses the age-old
technique used by ads of issuing writes from a Javascript file.

If you mount this at ``http://example.com/includer.js`` then you can
use tags like::

    &lt;script
     src="http://example.com/includer.js?url=encoded-url"&gt;&lt;/script&gt;

    &lt;script
     src="http://example.com/includer.js?url=encoded-url%23fragment"&gt;&lt;/script&gt;

    &lt;script
     src="http://example.com/includer.js?url=encoded-url&amp;dest=otherId"&gt;&lt;/script&gt;

These each include the content from the ``encoded-url``.  If you give
a fragment, it grabs just the bit of identified text.  If you don't,
it'll take all the text in the ``&lt;body&gt;`` of the page.

It will put the output exactly where the ``&lt;script&gt;`` tag is in the
page.  If you want to put it someplace else, ``&amp;dest=id`` will put it
in the element with the given id.  In that case it adds a little
onload(-like) handler, and then sets the ``innerHTML`` of element with
that id.  If you can't fetch the url, then it will put a small error
message into the page in its place.

By default it restricts urls based on the opt-in wildcards of the
``allowed_urls`` setting.  You can use ``allowed_urls = *`` to allow
anything, but this is not recommended.  You can also use ``same_host =
true`` to allow requests to the same host as where the includer is hosted.

To minimize backend traffic, set ``cache_dir`` to a location to save
the requested pages.  All the caching is handled by `httplib2
&lt;http://bitworking.org/projects/httplib2/ref/module-httplib2.html&gt;`_.

Example
~~~~~~~

To run an example, install the package and use ``paster serve
development.ini`` (``development.ini`` is in the tarball).  This will
start up a server on ``http://localhost:8080/`` where you can view an
example.

News
~~~~

0.1
---

Initial release</description>
<homepage rdf:resource="http://pypi.python.org/pypi/ScriptTranscluder" />
<maintainer><foaf:Person><foaf:name>Ian Bicking</foaf:name>
<foaf:mbox_sha1sum>1616423807944c9d85afc98f6490bb5d879566d1</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>0.1</revision></Version></release>
</Project></rdf:RDF>