1 # ===================================================================== 2 # mt.supportedTextFilters: dummy method for the MovableType API 3 # 4 # Copyright (c) 2008,2009 Carlo Strozzi 5 # 6 # This program is free software; you can redistribute it and/or modify 7 # it under the terms of the GNU General Public License as published by 8 # the Free Software Foundation; version 2 dated June, 1991. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with this program; if not, write to the Free Software 17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 # 19 # ===================================================================== 20 21 # ===================================================================== 22 # Local variables and functions 23 # ===================================================================== 24 25 # ===================================================================== 26 # Main program 27 # ===================================================================== 28 29 csaGetArgs POST 30 31 tw_dstem = $CSA_ROOT/lib/default 32 33 # Account for the fact that templates are created by the client. 34 CSA_TPL_SAFEPATH = ($CSA_INSTALL/lib $tw_dstem $TMPDIR $CSA_TPL_ROOT 35 $CSA_DOCROOT/$CSA_LANG/$TNS_ATTACH_PUBDIR) 36 37 # Without this, only the default OK response will be produced. 38 CSA_EXIT_SCRIPT = $CSA_ROOT/lib/exit-stuff.rc 39 40 csaMkTemp tpl.include.tw.rpc 41 42 cat <<'EOF' > $'tpl.include.tw.rpc' || csaExit.fault 0003 cat 43 44 45 46 47 48 key 49 __default__ 50 51 52 53 54 55 EOF 56 57 #if (~ $tpl_name tw-*) { 58 # 59 # # Page names beginning with tw-* are reserved for TW use, and usually 60 # # refer to views that do not correspond to actual pages on disk, so 61 # # we need to toggle unapplicable sections in templates. 62 # 63 # tpl.if.tw.ispage = '(::DEL:)' 64 # tpl.fi.tw.ispage = '(:DEL::)' 65 # tpl.if.tw.editor = '(::DEL:)' 66 # tpl.fi.tw.editor = '(:DEL::)' 67 #} 68 69 csaExit.ok 70 71 # End of program.