Re: 0template feature suggestion: Infer template from feed
"Bastian Eicher" <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <[email protected]> |
I'll give implementing this a shot. Wondering what the command-line interface should look like. Perhaps have calling "0template somefeed.xml" for an existing somefeed.xml cause somefeed.xml.template to be generated in the same directory, allowing an override with -o? -----Original Message----- From: Thomas Leonard [mailto:[email protected]] Sent: Samstag, 6. Juni 2015 13:13 To: The Zero Install system Subject: Re: [Zero-install-devel] 0template feature suggestion: Infer template from feed 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! ------------------------------------------------------------------------------