Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redding/deas-kramdown
Deas template engine for Kramdown templates
https://github.com/redding/deas-kramdown
Last synced: about 9 hours ago
JSON representation
Deas template engine for Kramdown templates
- Host: GitHub
- URL: https://github.com/redding/deas-kramdown
- Owner: redding
- License: mit
- Created: 2016-03-30T15:59:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T19:55:29.000Z (over 6 years ago)
- Last Synced: 2024-10-18T08:39:34.880Z (19 days ago)
- Language: Ruby
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deas::Kramdown
[Deas](https://github.com/redding/deas) template engine for rendering [Kramdown](http://kramdown.gettalong.org/) templates
## Usage
Register the engine:
```ruby
require 'deas'
require 'deas-kramdown'Deas.configure do |c|
c.template_source "/path/to/templates" do |s|
s.engine 'md', Deas::Kramdown::TemplateEngine
endend
```Add `.md` to any template files in your template source path. Deas will render their content using Kramdown when they are rendered.
## Installation
Add this line to your application's Gemfile:
gem 'deas-kramdown'
And then execute:
$ bundle
Or install it yourself as:
$ gem install deas-kramdown
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request