com.sysgears.grain.markup.markdown.MarkdownModule.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grain Show documentation
Show all versions of grain Show documentation
Grain is a static web site building framework for Groovy that makes demanding static web site
implementation an intuitive and enjoyable task to do.
package com.sysgears.grain.markup.markdown
import com.google.inject.AbstractModule
import com.google.inject.Provides
import com.sysgears.grain.config.ConfigBinder
/**
* Package-specific IoC config
*/
class MarkdownModule extends AbstractModule {
@Provides @javax.inject.Singleton
public MarkdownProcessor provideProcessor(ConfigBinder binder,
TxtMarkProcessor txtmark,
PegdownProcessor pegdown) {
binder.bind(MarkdownProcessor, 'features.markdown',
[default: txtmark, txtmark: txtmark, pegdown: pegdown])
}
@Override
protected void configure() {
}
}