You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current template system is working but does not seem to be well-engineered.
Currently, the template engine increases the size of the (compressed) image by ~1MB.
TTL currently supports templates (for fun), but that is probably overkill.
For PROXIED, only Boolean expressions are needed. No need to support variables, template inclusion, looping, etc.
Proposal
TTL should not support templates.
PROXIED should support only very restricted templates as a Boolean expression consisting of
a. Constants supported by strconv.ParseBool
b. &&, ||, !
b. is(a, b, c)
c. sub(a, b, c): subdomains of a.b.c (not including a.b.c itself)
Benefits
Extremely fast
Extremely small (again)
No ugly string quotations for domains!
Examples
is(a.org) || is(b.org)
sub(org) && !sub(favonia.org)
The text was updated successfully, but these errors were encountered:
Problem
The current template system is working but does not seem to be well-engineered.
TTL
currently supports templates (for fun), but that is probably overkill.PROXIED
, only Boolean expressions are needed. No need to support variables, template inclusion, looping, etc.Proposal
TTL
should not support templates.PROXIED
should support only very restricted templates asa Boolean expression
consisting ofa. Constants supported by
strconv.ParseBool
b.
&&
,||
,!
b.
is(a, b, c)
c.
sub(a, b, c)
: subdomains ofa.b.c
(not includinga.b.c
itself)Benefits
Examples
is(a.org) || is(b.org)
sub(org) && !sub(favonia.org)
The text was updated successfully, but these errors were encountered: