e.g. so that this:
Code: Select all
// ---- start foo.cfdg
include bar.cfdg prefix "bar_"
rule A{bar_A{s .5}}
rule bar_A .01{}
...
// ---- end foo.cfdg
// ---- start bar.cfdg
rule A{CIRCLE{} A{s .9 x 1 r 5}}
// ---- end bar.cfdg
Code: Select all
// ---- start foo.cfdg
include bar2.cfdg
rule A{bar_A{s .5}}
rule bar_A .01{}
...
// ---- end foo.cfdg
// ---- start bar2.cfdg
rule bar_A{CIRCLE{} bar_A{s .9 x 1 r 5}}
// ---- end bar2.cfdg
Obviously I am asking this to make CF a little more modular, while still permitting messing around with the internals of imported rules - not fully encapsulated. It would be fun to do some mashups of gallery designs without having to recode them to remove name clashes.