0template feature suggestion: Infer template from feed
"Bastian Eicher" <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <[email protected]> |
It would be nice if 0template could "infer" a template from an existing
feed.
The algorithm could look roughly like this:
* Copy metadata like <name>, <summary>, <homepage> from the feed to the
template unchanged
* Use <interface uri="..."> in the feed to fill in <feed-for> in the
template
* Find the latest <implementation> in the feed (resolving any <group>
nesting along the way) and copy it to the template
* Replace the values for version= and released= with {version} and
{released} respectively
* Search all other attributes (especially <arhive href="...">) for
occurrences of the version= and released= values from the feed and also
replace them with {version} and {released}
Thoughts?
------------------------------------------------------------------------------