webmcp

diff framework/env/encode/view_file_path.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children 2cb27106aa73
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/encode/view_file_path.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +--[[--
     1.5 +path =                  -- string containing a path to a view
     1.6 +encode.view_file_path{
     1.7 +  module = module,      -- module name
     1.8 +  view   = view         -- view name
     1.9 +}
    1.10 +
    1.11 +This function returns the file path of a view with a given module name and view name. Both module name and view name are mandatory arguments.
    1.12 +
    1.13 +--]]--
    1.14 +
    1.15 +function encode.view_file_path(args)
    1.16 +  return (encode.file_path(
    1.17 +    request.get_app_basepath(),
    1.18 +    'app', request.get_app_name(), args.module, args.view .. '.lua'
    1.19 +  ))
    1.20 +end

Impressum / About Us