import os
from gears.compilers import ExecCompiler


SOURCE = """(function() { %(namespace)s || (%(namespace)s = {});
    %(namespace)s["%(name)s"] = %(source)s;
}).call(this);"""


class EcoCompiler(ExecCompiler):
    result_mimetype = 'application/javascript'
    executable = 'node'
    params = [os.path.join(os.path.dirname(__file__), 'compiler.js')]

    def __call__(self, asset):
        super(EcoCompiler, self).__call__(asset)
        asset.processed_source = SOURCE % {
            'name': asset.attributes.path_without_suffix,
            'source': asset.processed_source,
            'namespace': 'this.JST',
        }
31eee47ad1e8239339c296eee0d524a2ee013ae0
<mask token>

<mask token>


class EcoCompiler(ExecCompiler):
    result_mimetype = 'application/javascript'
    executable = 'node'
    params = [os.path.join(os.path.dirname(__file__), 'compiler.js')]

    def __call__(self, asset):
        super(EcoCompiler, self).__call__(asset)
        asset.processed_source = SOURCE % {'name': asset.attributes.
            path_without_suffix, 'source': asset.processed_source,
            'namespace': 'this.JST'}

<mask token>
SOURCE = """(function() { %(namespace)s || (%(namespace)s = {});
    %(namespace)s["%(name)s"] = %(source)s;
}).call(this);"""


class EcoCompiler(ExecCompiler):
    result_mimetype = 'application/javascript'
    executable = 'node'
    params = [os.path.join(os.path.dirname(__file__), 'compiler.js')]

    def __call__(self, asset):
        super(EcoCompiler, self).__call__(asset)
        asset.processed_source = SOURCE % {'name': asset.attributes.
            path_without_suffix, 'source': asset.processed_source,
            'namespace': 'this.JST'}

import os
from gears.compilers import ExecCompiler
SOURCE = """(function() { %(namespace)s || (%(namespace)s = {});
    %(namespace)s["%(name)s"] = %(source)s;
}).call(this);"""


class EcoCompiler(ExecCompiler):
    result_mimetype = 'application/javascript'
    executable = 'node'
    params = [os.path.join(os.path.dirname(__file__), 'compiler.js')]

    def __call__(self, asset):
        super(EcoCompiler, self).__call__(asset)
        asset.processed_source = SOURCE % {'name': asset.attributes.
            path_without_suffix, 'source': asset.processed_source,
            'namespace': 'this.JST'}

import os
from gears.compilers import ExecCompiler


SOURCE = """(function() { %(namespace)s || (%(namespace)s = {});
    %(namespace)s["%(name)s"] = %(source)s;
}).call(this);"""


class EcoCompiler(ExecCompiler):
    result_mimetype = 'application/javascript'
    executable = 'node'
    params = [os.path.join(os.path.dirname(__file__), 'compiler.js')]

    def __call__(self, asset):
        super(EcoCompiler, self).__call__(asset)
        asset.processed_source = SOURCE % {
            'name': asset.attributes.path_without_suffix,
            'source': asset.processed_source,
            'namespace': 'this.JST',
        }