From 1cf62397a41f5344590c41655caf07c4c37561e6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 20 May 2014 01:04:02 +0400 Subject: [PATCH] Add search_tags.tmpl (CheetahTemplate) --- .gitignore | 1 + Makefile | 9 +++++++++ search_tags.tmpl | 25 +++++++++++++++++++++++++ update | 3 +++ 4 files changed, 38 insertions(+) create mode 100644 Makefile create mode 100644 search_tags.tmpl diff --git a/.gitignore b/.gitignore index bf5a5a2..5a2bcec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /*.py[co] /parser.out /parsetab.py +/search_tags.py diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d802c5a --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +# Makefile. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2014 PhiloSoft Design" + +%.py: %.tmpl + cheetah compile --nobackup $< && compyle $@ + +search_tags.py: search_tags.tmpl diff --git a/search_tags.tmpl b/search_tags.tmpl new file mode 100644 index 0000000..3fbefaf --- /dev/null +++ b/search_tags.tmpl @@ -0,0 +1,25 @@ +#encoding koi8-r +#implements respond + + + + + +$Title + + + + + + + + + + + + +$body + +#slurp diff --git a/update b/update index 9d996d8..38b6727 100755 --- a/update +++ b/update @@ -4,5 +4,8 @@ current="`git config --get remote.current.url`" && git pull --ff-only current master && git push web && +# Copy search_tags.* with timestamp to avoid rebuilding +rsync -ahP "$current"/search_tags.py "$current"/search_tags.tmpl . && + cd "$current" && exec git pull origin -- 2.39.2