Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Simpler XML examples #60

Open
mwilliamson-firefly opened this issue Jan 20, 2016 · 2 comments
Open

Simpler XML examples #60

mwilliamson-firefly opened this issue Jan 20, 2016 · 2 comments

Comments

@mwilliamson-firefly
Copy link
Contributor

As I understand it, we generate XML in the pattern library by reading some YAML, passing it through a SWIG template that generates some XML. Could we not just use XML directly rather than YAML? I'm not sure I understand what using YAML and SWIG buys us, and it makes it harder to see what XML is actually being used.

@dkhuntrods
Copy link
Contributor

The YAML is used quite extensively throughout the patternlib for metadata, etc., and we use an XML template rather than XML directly so that we can abstract that away from the data (which is used in a variety of ways, not just for the XSL templates) and also as we pass lots of different data in to test different cases for each pattern (which is where the pages come in).

I agree that it could be easier to see what's being used and to that end would like to build a view in each pattern that previews each resource that went into making it.

Also, see #63 (comment)

@mwilliamson-firefly
Copy link
Contributor Author

Is it necessary for the YAML to have a different shape from the XML being generated? If the shape of both were similar enough that you could automatically generate one from the other without having to define an XML/SWIG template for each pattern, I think that would help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants