All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sysgears.grain.markup.markdown.MarkdownModule.groovy Maven / Gradle / Ivy

Go to download

Grain is a static web site building framework for Groovy that makes demanding static web site implementation an intuitive and enjoyable task to do.

There is a newer version: 0.7.3
Show newest version
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() {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy