This repository serves to help build snippets, components and templates for the Perron library.
Start the server:
bin/dev- Create the resource structure:
bin/new templates/blog
- Develop the template in the dummy app
- Update the development/template.rb
- Generate the template files:
bin/prepare-resource templates/blog
- Clean the dummy app:
bin/clean
- Test the generated template:
bin/apply templates/blog
- Apply the existing template to dummy app:
bin/apply templates/blog
- Make changes in the dummy app
- Update the template files:
bin/prepare-resource templates/blog
- Clean the dummy app:
bin/clean
- Test the updated template:
bin/apply templates/blog
components/: reusable UI componentssnippets/: snippets to inject functionality into your sitetemplates/: complete site templatestest/dummy/: development Rails app with Perron installed
Each resource contains:
development/template.rb: template with{{files}}placeholder (this will be used bybin/prepare-resource)files.txt: list of files to include (one per line; auto-generated bybin/prepare-resource)template.md: frontmatter with title, description; optional: about, category; body (after frontmatter)images/: optional, screenshots of the resourcetemplate.rb: generated final template (generated bybin/prepare-resource; should not be manually updated)