<gh_stars>1-10
import logbook

from .base import SubsystemBase

_logger = logbook.Logger(__name__)

class FlaskBlueprintSubsystem(SubsystemBase):

    NAME = 'templates'

    def configure_grain(self, grain, flask_app):
        if flask_app.template_folder is not None:
            raise RuntimeError('Multiple template dirs not supported yet')

        flask_app.template_folder = grain.path

    def iter_locations(self):
        return None

import logbook

from .base import SubsystemBase

_logger = logbook.Logger(__name__)

class FlaskBlueprintSubsystem(SubsystemBase):

    NAME = 'templates'

    def configure_grain(self, grain, flask_app):
        if flask_app.template_folder is not None:
            raise RuntimeError('Multiple template dirs not supported yet')

        flask_app.template_folder = grain.path

    def iter_locations(self):
        return None