Textpattern Plugin, stores JavaScript files within the database and handles them similar to CSS files.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
stm_javascript.txt

README

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This plugin is outdated please use this alternative instead:

https://github.com/spiffin/spf_js

Simon, Thank you!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Stores JavaScript files within the database and handles them similar to CSS files.

In admin section, go to tab “presentation > javascript” and create one ore more javascript files that you want to embed within your page templates. This is similiar to the “styles” tab – the JavaScript files get stored in the database and you can embed them with a new Textpattern tag:

<txp:js /> (embeds default JavaScript file) 
<txp:js n="myDomScript" /> (embeds JavaScript file named "myDomScript")

Output:
<script type="text/javascript" src="http://mysite.com/?js=myDomScript"></script>