Browse Source

feature: default function is used as a template

pypackage 2.5.10
Volker Birk 3 years ago
parent
commit
8c189d3641
4 changed files with 13 additions and 9 deletions
  1. +10
    -6
      backend.py
  2. +1
    -1
      heading.en.yhtml2
  3. +1
    -1
      yml2c
  4. +1
    -1
      yml2proc

+ 10
- 6
backend.py View File

@ -1,4 +1,4 @@
# 2.5.8 backend
# 2.5.10 backend
# written by VB.
@ -6,7 +6,7 @@ import re, codecs
import fileinput
import sys, traceback, exceptions, os
from xml.sax.saxutils import escape, quoteattr
from copy import deepcopy
from copy import copy, deepcopy
from glob import glob
from pyPEG import code, parse, parseLine, u, Symbol
from yml2 import ymlCStyle, comment, _inner
@ -495,11 +495,15 @@ def codegen(obj):
try:
ymlFunc[name]
except:
except KeyError:
try:
ymlFunc["_"]
return codegen(('func', ['_', ('content', [('funclist', [obj])])]))
except:
if ymlFunc["_"].alias != u"-":
return codegen(('func', ['_', ('content', [('funclist', [obj])])]))
else:
ymlFunc[name] = copy(ymlFunc["_"])
ymlFunc[name].alias = name.replace("_", "-")
return codegen(obj)
except KeyError:
ymlFunc[name] = YF(name)
if ymlFunc[name].alias == "-": avoidTag = True


+ 1
- 1
heading.en.yhtml2 View File

@ -13,7 +13,7 @@ decl ne is a {
div id=headline {
p > YML – Why a Markup Language?!
div class=small {
"YML 2.5.9 of Tu 20 Nov 2018 – Copyleft 2007-2018, "
"YML 2.5.10 of Tu 15 Feb 2019 – Copyleft 2007-2019, "
a "http://blog.fdik.org", "Volker Birk";
" – "
a "http://fdik.org/yml2.tar.bz2", "Download YML 2";


+ 1
- 1
yml2c View File

@ -2,7 +2,7 @@
# vim: set fileencoding=utf-8 :
"""\
YML 2 compiler version 5.9
YML 2 compiler version 5.10
Copyleft (c), 2009-2018, Volker Birk http://fdik.org/yml/
"""


+ 1
- 1
yml2proc View File

@ -2,7 +2,7 @@
# vim: set fileencoding=utf-8 :
"""\
YML/YSLT 2 processor version 5.9
YML/YSLT 2 processor version 5.10
Copyleft (c), 2009-2018 Volker Birk http://fdik.org/yml/
"""


Loading…
Cancel
Save