trevordevore / levure

Application development framework for LiveCode
MIT License
32 stars 14 forks source link

Mechanism For Helpers To Self-Set Properties #103

Closed macMikey closed 6 years ago

macMikey commented 6 years ago

There isn't an (official) mechanism for helpers to automagically use app.yml settings to set their properties. The only (official) way is to have the main app call a setter. For example the logger's target and log level have to be set via a setter, instead of being able to read the appropriate values from app.yml and do it itself.

trevordevore commented 6 years ago

I may not b le understanding what you are trying to do, but why can’t the logger library use the levureAppGet and levureAppSet?

The helpers wiki page has this example:

if levureAppHasProperty("app updater") then put levureAppGet("app updater") into tConfigA _replaceVariables xFiledata, pBuildProfile, tConfigA end if

macMikey commented 6 years ago

Uhhhhhhhhhhh how did I miss that?