corriger le template
This commit is contained in:
parent
9cf51d0ce7
commit
f2f6bada9e
|
@ -133,16 +133,15 @@ function __generate_html() {
|
|||
end='</body>
|
||||
</html>'
|
||||
}
|
||||
function __update_html() {
|
||||
html="<!-- -*- coding: $encoding ${mode:+mode: $mode }-*- vim:sw=4:sts=4:et:ai:si:sta:fenc=$encoding
|
||||
-->$html"
|
||||
function __before_write_html() {
|
||||
doctype="$doctype<!-- -*- coding: $encoding ${mode:+mode: $mode }-*- vim:sw=4:sts=4:et:ai:si:sta:fenc=$encoding
|
||||
-->"
|
||||
}
|
||||
function __write_html() {
|
||||
# $file et $mode doivent être initialisés
|
||||
check_overwrite "$1" || return
|
||||
estep "$(ppath "$file")"
|
||||
echo >"$file" "${doctype:+$doctype
|
||||
}$html
|
||||
echo >"$file" "$doctype$html
|
||||
$head
|
||||
${blueprint:+$blueprint
|
||||
}${jquery:+$jquery
|
||||
|
@ -166,8 +165,7 @@ function generate_html() {
|
|||
local jquery="$jquery"
|
||||
local html head start startbp endbp end
|
||||
__generate_html
|
||||
__update_html
|
||||
|
||||
__before_write_html
|
||||
__write_html
|
||||
|
||||
[ -n "$2" ] && array_add "$2" "$file"
|
||||
|
@ -191,8 +189,7 @@ function generate_javadoc_package() {
|
|||
local jquery=
|
||||
local html head start startbp endbp end
|
||||
__generate_html
|
||||
__update_html
|
||||
|
||||
__before_write_html
|
||||
__write_html
|
||||
|
||||
[ -n "$2" ] && array_add "$2" "$file"
|
||||
|
@ -216,8 +213,7 @@ function generate_javadoc_overview() {
|
|||
local jquery=
|
||||
local html head start startbp endbp end
|
||||
__generate_html
|
||||
__update_html
|
||||
|
||||
__before_write_html
|
||||
__write_html
|
||||
|
||||
[ -n "$2" ] && array_add "$2" "$file"
|
||||
|
@ -238,8 +234,8 @@ function generate_php() {
|
|||
local html head start startbp endbp end
|
||||
__generate_html
|
||||
doctype="<?php # -*- coding: $encoding ${mode:+mode: $mode }-*- vim:sw=2:sts=2:et:ai:si:sta:fenc=$encoding
|
||||
?>$doctype"
|
||||
|
||||
?>${doctype:+$doctype
|
||||
}"
|
||||
__write_html
|
||||
|
||||
[ -n "$2" ] && array_add "$2" "$file"
|
||||
|
|
Loading…
Reference in New Issue