@athenna/view
Advanced tools
Comparing version 4.18.1 to 4.19.0
{ | ||
"name": "@athenna/view", | ||
"version": "4.18.1", | ||
"version": "4.19.0", | ||
"description": "The Athenna template engine. Built on top of Edge.js.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
import { Env, Config } from '@athenna/config'; | ||
import { Config } from '@athenna/config'; | ||
import { ViewImpl } from '#src/views/ViewImpl'; | ||
@@ -16,4 +16,2 @@ import { ServiceProvider } from '@athenna/ioc'; | ||
const view = new ViewImpl(); | ||
view.addProperty('Env', Env); | ||
view.addProperty('Config', Config); | ||
this.container.instance('Athenna/Core/View', view); | ||
@@ -25,2 +23,4 @@ if (Config.exists('view.disk')) { | ||
Object.keys(disks).forEach(k => view.createViewDisk(k, disks[k])); | ||
const properties = Config.get('view.properties', {}); | ||
Object.keys(properties).forEach(k => view.addProperty(k, properties[k])); | ||
const components = Config.get('view.components', {}); | ||
@@ -27,0 +27,0 @@ Object.keys(components).forEach(k => view.createComponentByPath(k, components[k])); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41819