# File lib/cgikit/project/templates/en/conf.rb, line 9
    def template_en
      "module \#{@project.name}\n\n  class Application < CGIKit::Application\n\n    def configure\n      configure_package\n      configure_component\n      configure_session\n      configure_paths\n      configure_localization\n      configure_request_handlers\n      configure_classes\n    end\n\n\n    def configure_package\n\n      # Required packages:\n      # Specify package names to load.\n      # ( packages in \"packages\" directory are loaded automatically)\n      # @required_packages = []\n\n      # Main package options:\n      # Configuration for loading main package (this application).\n      # If you create the application with ckproject,\n      # you don't need configure this.\n      #\n      # :component_load_type\n      #   Component load type. Specify 'autoload' or 'require'.\n      #   Default value is 'require'.\n      # :package_class_name\n      #   Module name to be used with autoloading component classes.\n      #\n      # @main_package_options = {}\n\n    end\n\n\n    def configure_component\n\n      # Main page:\n      # If session ID or context ID aren't specified, this component is shown. \n      @main = \#{@project.name}::MainPage\n\n      # Error page:\n      # Name or class of an error page component to show caught errors.\n      @error_page = CGIKit::ErrorPage\n\n      # Cache template:\n      # Whether or not caches templates to reduce parsing load.\n      @cache_template = true\n\n      # Validating API of elements:\n      # Whether or not validates setting of attributes for each elements.\n      # If wrong attribute name or combination are found, raises error.\n      @validate_api = true\n\n    end\n\n\n    def configure_session\n\n      # Page cache size:\n      # Size to cache components permanently in session.\n      # Newly generated page is cached automatically.\n      # If holded page size is over the value, oldest pages are deleted.\n      @page_cache_size = 30\n\n      # Permanent page cache size:\n      # Size to cache components permanently in session.\n      # Permanent page cache is cached optionally, not automatically caching.\n      # If holded page size is over the value, oldest pages are deleted.\n      @permanent_page_cache_size = 30\n\n      # Session timeout:\n      # Seconds until the session has timed out.\n      @timeout = 60 * 60 * 24 * 7\n\n      # Session cookie expires:\n      # Expiry date of cookie for session. If you set the value to nil,\n      # session cookies will be invalid when closing browser.\n      @session_cookie_expires = 60 * 60 * 24 * 7\n\n      # Storing session IDs in URLs:\n      # Enables or disables the use of URLs for storing session IDs.\n      @store_in_url = true\n\n      # Storing session IDs in cookies:\n      # Enables or disables the use of cookies for storing session IDs.\n      @store_in_cookie = false\n\n      # Authorizing session by user agent:\n      # Enables or disables session authorization by browsers.\n      # If you set the value to true, the application raises error\n      # when an user accesses it with browser that is different from\n      # one registered session.\n      @auth_by_user_agent = false\n\n      # Authorizing session by IP addresses:\n      # Enables or disables session authorization by IP addresses.\n      # If you set the value to true, the application raises error\n      # when an user accesses it with IP address that is different from\n      # one registered session.\n      @auth_by_remote_addr = false\n\n      # Session key:\n      # This key is used in cookie.\n      @session_key = '_session_id'\n\n      # Session key in direct action:\n      # This key is used in hidden fields of form and URL when using direct action.\n      @direct_action_session_key = '_sid'\n\n      # Session sweeping password:\n      # Password for session sweeping page.\n      # To disable the page, set this value to nil.\n      # The page is a direct action \"\#{CGIKit::DirectAction::SWEEP_ACTION_NAME}\".\n      @sweep_password = nil\n\n    end\n\n\n    def configure_paths\n\n      # Component paths:\n      # The file system paths for components. Components are searched under it.\n      @component_path = 'components'\n\n      # Document root directory:\n      # @document_root = '/var/www/htdocs'\n\n      # Resources directory:\n      # This directory includes files to be used by the application,\n      @resource_path = 'resources'\n\n      # Web server resources directory:\n      # This directory includes files to be displayed to browser.\n      # The files are used by Image element, etc.\n      @web_server_resource_path = 'www'\n\n      # Temporary directory:\n      # Temporary directory to be used by the framework.\n      # The framework uses this to store sessions and template caches.\n      @tmpdir = './tmp' || ENV['TMP'] || ENV['TEMP']\n\n    end\n\n\n    def configure_localization\n\n      # Encoding for form data:\n      # Encoding to encode character code of form data.\n      # The default implementation does nothing.\n      # If you use Japanese encoding, require 'cgikit/lang/ja'.\n      # Or if you want to use other encoding, implement custom encoding\n      # by overwriting DynamicElement#encode_string and failed_encode_string.\n      # @encoding = nil\n\n    end\n\n\n    def configure_classes\n\n      # Direct action class:\n      @direct_action_class = \#{@project.direct_action.class_name}\n\n      # Session class:\n      @session_class = \#{@project.session.class_name}\n\n      # Context class:\n      # @context_class = CGIKit::Context\n\n      # HTML parser class:\n      # @htmlparser_class = CGIKit::HTMLParser::HTMLParser\n\n    end\n\n\n    def configure_request_handlers\n\n      # Component request handler key:\n      # @component_request_handler_key = 'c'\n\n      # Direct action request handler key:\n      # @direct_action_request_handler_key = 'd'\n\n      # Resource request handler key:\n      # @resource_request_handler_key = 'r'\n\n      # Component request handler:\n      # @component_request_handler = CGIKit::ComponentRequestHandler.new(self)\n\n      # Direct action request handler:\n      # @direct_action_request_handler = CGIKit::DirectActionRequestHandler.new(self)\n\n      # Resource request handler:\n      # @resource_request_handler = ResourceRequestHandler.new(self)\n\n      # Default request handler:\n      # This handler is used when the application receives a request\n      # without request handler key.\n      # If you set the value to direct action request handler,\n      # the application invoke default direct action when first accessing it.\n      # The default value is component request handler.\n      # @default_request_handler = @component_request_handler\n\n    end\n\n  end\n\nend\n"
    end