Closed lyzadanger closed 9 years ago
Regarding partials: there are a few mechanisms.
button
src/views/layouts/includes
) is registered as a partial. This is meant for partials for the UI of the pattern library itselfmaterial
that can be used to manage context and stuff, e.g. {{ material name context }}
This model is a step backward for namespace collisions (it seems we have to make sure all files have a unique name) but otherwise gives various options.
Removed examples from explicit ordering and "hidden" patterns/partials, as I now think that could be handled via YAML (features were too overt in suggesting a solution).
Should we just create issues to implement chunks of this feature set?
@erikjung Why don't we keep this as a central list but start calving off things into separate issues (I already started doing that vis-a-vis ordering, e.g.)? Does that seem plausible?
@lyzadanger Yes, that's what I was imagining.
Also, I checked off a few more boxes that are inherently complete.
On
| Ability to define the project name
You can indirectly do this by changing the title
front-matter attribute in templates. Default for index.html
is "Overview | Fabricator" but can easily be changed to project name.
Does that suffice?
| Ability to output the most recent build date/time
Should be straightforward with a helper that can use moment.js
.
@tylersticka Having trouble understanding this requirement:
| Ability to output project template content (YAML front-matter, compiled content, etc.)
Can you shed some light?
On
| Ability to define the project name
You can indirectly do this by changing the title front-matter attribute in templates. Default for index.html is "Overview | Fabricator" but can easily be changed to project name.
Does that suffice?
It does, I think!
@tylersticka Having trouble understanding this requirement:
| Ability to output project template content (YAML front-matter, compiled content, etc.)
Can you shed some light?
You should be able to set some YAML in a pattern (example, foo: bar
) and then from the styleguide reference it, so {{foo}}
outputs bar
. This probably made more sense as a spelled-out requirement when we were rolling our own solution.
Ability to output project template content (YAML front-matter, compiled content, etc.)
I think this already exists inherently.
This is a copy of the feature list from
drizzle
so I can keep it in mind:This is my initial sweep of project requirements, we can modify as needed.
01-hello-world
→Hello World
)<title>
)<pre><code>{{{escaped}}}</code></pre>
or whatever) with language-appropriate syntax highlighting.editorconfig
, etc. to enforce project-level conventions