mirror of
https://github.com/myvesta/vesta
synced 2025-07-15 01:23:23 -07:00
improving template structure
This commit is contained in:
parent
fce5ddeddf
commit
cd69b7bcdf
23 changed files with 135 additions and 88 deletions
|
@ -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 "----------"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue