         autoescape: false
         data:  '<%= data %>'
         configureEnvironment: (env) ->
-          ###*
-           * Append string with locale name based on whether it's base locale or not
-           * Most useful for urls construction
-           * @param  {string} string                 Target string
-           * @param  {string} locale = currentLocale Locale name, for which resolving should be made
-           * @return {string} String with resolved locale in front
-          ###
-          env.addFilter 'resolveUrl', (string, locale = currentLocale) ->
-            return (if resolveLocaleDir(locale) then '/' + resolveLocaleDir(locale) else '') + string
-
-          ###*
-           * Output or not locale name based on whether it's base locale or not.
-           * @param  {string} locale Name of locale, for which should be made resolving
-           * @return {string} Resolved value
-          ###
-          env.addFilter 'resolveLocaleDir', (locale) ->
-            if resolveLocaleDir(locale) then '/' + resolveLocaleDir(locale) else ''
-
-          ###*
-          * Load string from current locale
-          * @note So far `sprintf` support only named placeholders
-          * @param  {string} string  String, which should be loaded
-          * @param  {object} ph = {} Values, which will be inserted instead of placeholders
-          * @return {string} Translated string into current locale
-          ###
-          env.addGlobal '_t', (string, ph = {}) ->
-            sprintf(i18n.dgettext(currentLocale, string), ph)
-
-          ###*
-           * Load string from specified locale
-           * @note So far `sprintf` support only named placeholders
-           * @param  {string} locale = currentLocale Locale, from which string should be loaded
-           * @param  {string} string                 String, which should be loaded
-           * @param  {object} ph     = {}            Values, which will be inserted instead of placeholders
-           * @return {string} Translated string into specified locale
-          ###
-          env.addGlobal '_dt', (locale = currentLocale, string, ph = {}) ->
-            sprintf(i18n.dgettext(locale, string), ph)
+          # ==========
+          # Extensions
+          # ==========
 
           ###*
            * Nunjucks extension for Markdown support

          ###
          markdown.register(env, marked)

          ###*
           * Pass lodash inside Nunjucks
          ###
          env.addGlobal '_', _

          ###*
           * Get information about page from specified object.

            if result then result else grunt.log.error('[getPage] can\'t find requested `' + subbedPath + '` inside specified object')

          ###*
          * Load string from current locale
          * @note So far `sprintf` support only named placeholders
          * @param  {string} string  String, which should be loaded
          * @param  {object} ph = {} Values, which will be inserted instead of placeholders
          * @return {string} Translated string into current locale
          ###
          env.addGlobal '_t', (string, ph = {}) ->
            sprintf(i18n.dgettext(currentLocale, string), ph)

          ###*
           * Load string from specified locale
           * @note So far `sprintf` support only named placeholders
           * @param  {string} locale = currentLocale Locale, from which string should be loaded
           * @param  {string} string                 String, which should be loaded
           * @param  {object} ph     = {}            Values, which will be inserted instead of placeholders
           * @return {string} Translated string into specified locale
          ###
          env.addGlobal '_dt', (locale = currentLocale, string, ph = {}) ->
            sprintf(i18n.dgettext(locale, string), ph)

          # =======
          # Filters
          # =======

          ###*
           * Replaces last array element with new value
