Skip to content

Commit

Permalink
Merge pull request #122 from stevepiercy/v9.3
Browse files Browse the repository at this point in the history
Comment loading of l-debug, optionally allowing users to load. l-debu…
  • Loading branch information
stevepiercy committed Aug 4, 2016
2 parents ed8a8eb + ca79e89 commit 94fcf12
Showing 1 changed file with 34 additions and 35 deletions.
69 changes: 34 additions & 35 deletions knop9/knoplibs/_init.lasso
@@ -1,39 +1,38 @@
[
/* =====================================================
Pull in core methods
This is done in-order so if you wish to load any before others then shuffle the order of the array as desired.
===================================================== */
local(coremethods = array(
'debug.type.lasso',
'knop_utils.lasso',
'knop_base.lasso',
'knop_cache.lasso',
'knop_lang.lasso',
'knop_database.lasso',
'knop_form.lasso',
'knop_grid.lasso',
'knop_nav.lasso',
'knop_user.lasso'
)
)
<?lasso
/*
Load core methods in order.
Optionally shuffle the loading order of elements as desired.
*/
local(coremethods = array(
// 'debug.type.lasso',
'knop_utils.lasso',
'knop_base.lasso',
'knop_cache.lasso',
'knop_lang.lasso',
'knop_database.lasso',
'knop_form.lasso',
'knop_grid.lasso',
'knop_nav.lasso',
'knop_user.lasso'
)
)
// (not lasso_tagExists('debug')) ? #coremethods -> insertfirst('debug.type.lasso')
// Courtesy of Ke Carlton, www.l-debug.org. L-Debug for Lasso 9 All rights reserved — K Carlton 2011-2013
(not lasso_tagExists('debug')) ? #coremethods -> insertfirst('debug.type.lasso')
// Courtesy of Ke Carlton. L-Debug for Lasso 9, https://github.com/zeroloop/l-debug
with file in #coremethods do protect => {
local(s) = micros
handle => {
stdoutnl(
error_msg + ' (' + ((micros - #s) * 0.000001)->asstring(-precision=3) + ' seconds)'
)
}
stdout('\t' + #file + ' - ')
with file in #coremethods do protect => {
local(s) = micros
handle => {
stdoutnl(
error_msg + ' (' + ((micros - #s) * 0.000001)->asstring(-precision=3) + ' seconds)'
)
}
web_request
? library(include_path + #file)
| lassoapp_include(#file)
}
stdout('\t' + #file + ' - ')
]
web_request
? library(include_path + #file)
| lassoapp_include(#file)
}
?>

0 comments on commit 94fcf12

Please sign in to comment.