Re: 0template feature suggestion: Infer template from feed
Thomas Leonard <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAG4opy9KjnP94jvCxm76RwCbZWwq-yPmEnRJX6dxpQSxqL-unA@mail.gmail.com> |
On 2 June 2015 at 19:19, Bastian Eicher <[email protected]> wrote: > 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? Sounds useful! -- Dr Thomas Leonard http://roscidus.com/blog/ GPG: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA ------------------------------------------------------------------------------