inc: A super-tiny client-side include JavaScript jQuery plugin

クライアントでファイルを include する。

ここに test.htm を読み込む

クリックするとテキストを読み込む

This text will be replaced with footer.txt

<script type="text/javascript"> 
$(function() {
    $('a.tips').cluetip({splitTitle: '|'}); 
});
</script>
<p class="inc:test.htm">適当なテキスト</p>
<p onclick="$(this).inc('test.htm');">適当なテキスト</p>

Links