CGI-Ex-Recipes

 view release on metacpan or  search on metacpan

erecipes/conf/Recipes.conf  view on Meta::CPAN

    edit:     1
    view:     1
    delete:   1
    default:  1

allow_nested_morph: 1

require_auth:
    add:      1
    edit:     1
    delete:   1
    view:     0
    default:  0

auth_args:
    #  login_template: 
    #10 hours
    expires_min: 36000
    login_template: templates/content/login.tthtml

#Path info Maps - see CGI::Ex::App docs for path_info_map

path_info_map:
    add:
        -
            - !!perl/regexp (?-xism:^/add/(\d+)(/after/(\d+))?(?=/(.*))?)
            - pid
            - dummy
            - sortorder
            - step_info
    edit:
        -
            - !!perl/regexp (?-xism:^/edit/(\d+)/?(?=(.*)))
            - id
            - step_args
    view:
        -
            - !!perl/regexp (?-xism:^/view/(\d+)/?(?=(.*)))
            - id
            - step_args            
    delete:
        -
            - !!perl/regexp (?-xism:^/delete/(\d+)/?(?=(.*)))
            - id
            - step_args  
    default:
        -
            - !!perl/regexp (?-xism:^/default/(\d+)/?(?=(.*)))
            - id
            - step_args            
# and so on...

template_args:
#(Not in TT)#default tt3
    SYNTAX:       tt3
#allow loading regular perl modules
    LOAD_PERL:    1
    INTERPOLATE:  1
#A hashref of mappings for plugin modules.
    PLUGINS:
        Menu: 'CGI::Ex::Recipes::Template::Menu'
    PLUGIN_BASE: 'CGI::Ex::Recipes::Template'
    SEMICOLONS:            0
#(Not in TT)#default 0
    SHOW_UNDEFINED_INTERP: 0
    STAT_TTL:              1
    TRIM:                  0
    INCLUDE_PATH: ''
#we place here some specific for the app settings and macros which will be used in templates
    PRE_PROCESS: templates/content/pre_process.tthtml
#we use it as application main template
    WRAPPER: templates/content/main_wrapper.tthtml
    COMPILE_DIR: tmp
#Recomendation: mod_perl:2; CGI:0
    COMPILE_PERL: 2
    DEFAULT: templates/content/notfound.tthtml
    DUMP: 1
    EVAL_PERL: 1

#This Application specific
#user:password hash
users:
    krassi: prassi
    tedi:   pedi
    
#vim:ts=4 fdm=indent fdc=2



( run in 0.517 second using v1.01-cache-2.11-cpan-6aa56a78535 )