improving template structure

This commit is contained in:
Serghey Rodin 2013-04-03 23:18:51 +03:00
parent fce5ddeddf
commit cd69b7bcdf
23 changed files with 135 additions and 88 deletions

View file

@ -17,8 +17,7 @@ source $VESTA/func/main.sh
# Json function
json_list_wtpl() {
templates=$(ls -t $WEBTPL |grep 'nginx' |grep '\.tpl' |cut -f 2 -d '_'\
|cut -f 1 -d '.')
templates=$(ls -t $WEBTPL/nginx | cut -f 1 -d '.' |sort -u )
t_counter=$(echo "$templates" | wc -w)
i=1
echo '['
@ -35,8 +34,7 @@ json_list_wtpl() {
# Shell function
shell_list_wtpl() {
templates=$(ls -t $WEBTPL |grep 'nginx' |grep '\.tpl' |cut -f 2 -d '_'\
|cut -f 1 -d '.')
templates=$(ls -t $WEBTPL/nginx | cut -f 1 -d '.' |sort -u )
if [ -z "$nohead" ]; then
echo "Templates"
echo "----------"