How to Include Smarty docs in Quanta *new*

From: Date: Fri, 21 Dec 2001 22:35:20 +0000
Subject: How to Include Smarty docs in Quanta *new*
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2368@lists.php.net to get a copy of this message
<<< PREVIOUS VERSION GOT AS REPLY INSTEAD OF NEW, ALSO GOT WRAPPED >>> I use Quanta+ for developing php sites using smarty, so I find very practical to have the smarty documentation in quanta, well here is what I have done... 1. I'm using QuantaPlus 2.0.1 + Smarty 1.5.2 + Mandrake 8.0 2. I have installed quanta in /usr/share/apps/quanta, let call this dir QUANTADIR # export QUANTADIR=/usr/share/apps/quanta 3. I have downloaded Smarty-1.5.2-doc.tar.gz and decompressed in QUANTADIR/doc renaming the dir to "smarty" # cd $QUANTADIR/doc # tar zxvf /tmp/Smarty-1.5.2-doc.tar.gz # mv doc smarty 4. Then I created (by hand) the smarty.docrc file you don't have to do this, just copy and paste the following lines after the command # uudecode ------------------------------- cut here --------------------------------- begin 644 smarty.docrc.gz M'XL("&2K(SP"W-M87)T>2YD;V-R8P!U4LMNVS0O/,K%C#0DUKH%;D)P$-C MQVA0%#%J-9>B!YI:VT0ITB"I5.[7EY3\D&7D((B8&>[,+G<"W^9/,--J([:P M$!+)!&8&F<,*U@=8LK74\(I2_/.$5O`F$"K!(4T@F3YDQ4.2PN-+"6D<)^17 M:1!_$S+7W(L,M34S[D!(J??P)+%&Y>CJB/5_6GH#!+T)$9SG;?3RAL:[_(V> ME75,2N:$5M%DA<X)M86?>W_N[L*7Y?/Y7&*]]U*TT1S7S78;I+ZDU1*CTNC& MN]B=UJ%$5(J]A0]0&L'_V(C<1*!"5=A^VKE:DE,:RM,X(&28BO)IWH&7<#28 M.A8:Z8?:F$X*K\R(8.0-SQ+*[Y/N_CM2VB9QUAN<.Z;^@T6C>)#:Z-0W_$"K M&\-Q`"T-;H1T:(:8MFXQ!F>,[Q"^,E7)T,6E.KDR\S,H[KHXMZZT+>(1=['W M9):.R$L.S^;9-?M>("^]RX<#.3\[71V48^UQZ-%CXVM_%&K0RZRQ3M<#X#1F M^*XKL1%A(J2O0GE19(.'H>TTZYN[K>NYO.BU(P/_>FG27[NUHFT:3_O'OUE8 =/^?LOJ\Y6EW/Y,>-N%KB@">?._P_SD#>I-$#```` ` end ------------------------------- cut here --------------------------------- 5. You'll have a smarty.docrc.gz which you have to decompress # gzip -d smarty.docrc.gz 6. Start Quanta! and voila! you have the context help there automagically!! - let's open a template (TIP: I rename my templates to filename.tpl.html) - go to something and put the cursor there, something like {if ..... - press Ctrl+H and bingo! you have a jumped to the smarty docs explaining the if clause - isn't it great!! 7. Maybe the autodoc could generate the smarty.docrc so we can have it in every release ? I could help! --- Pablo Veliz

« previous php.smarty.general (#2368) next »