From: paul Date: Wed, 13 Apr 2016 11:12:35 +0000 (+0000) Subject: serve html file statically X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=f3a95ddb800ed7539917db3e876c2cff4ca4befa;p=serve0 serve html file statically svn path=/trunk/; revision=116 --- diff --git a/templates/common.css.sh b/static/common.css similarity index 90% rename from templates/common.css.sh rename to static/common.css index edfe39d..a995fd6 100755 --- a/templates/common.css.sh +++ b/static/common.css @@ -1,21 +1,20 @@ -# Copyright 2014 - 2016 Paul Hänsch -# -# This file is part of Serve0 -# -# Serve0 is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Serve0 is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with Serve0 If not, see . - -cat <. +*/ * { -moz-box-sizing: border-box; @@ -375,6 +374,4 @@ div.panel { #playctl form button[name="vol"] { width: 3%;} #playctl form button[name="amp"] + br {display: none;} } -EOF -# vi:set filetype=css: diff --git a/templates/frame.html.sh b/templates/frame.html.sh index 6350bd2..e6f2d6e 100755 --- a/templates/frame.html.sh +++ b/templates/frame.html.sh @@ -22,11 +22,7 @@ cat < ${TITLE:-${PAGE}} - + $([ -x "${BODY}" ] && . "${BODY}" || printf %s Error)