# File lib/cgikit/project/templates/en/conf.rb, line 8
    def template_en
      "module \#{@project.name}\n\n  class Application < CGIKit::Application\n\n    def configure\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_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::CKErrorPage\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      #\n      # The default value is an array of these paths.\n      #\n      # * \#{@project.name}/\n      # * \#{@project.name}/components\n      # * (each load paths for library)/cgikit/components\n      #\n      @component_paths = ['./components', Dir.pwd]\n      $LOAD_PATH.each do |path|\n        @component_paths << File.join(path, CGIKIT_LIB, COMPONENT_LIB)\n      end\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      @resources = './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_resources = '/var/www/htdocs/images'\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      # Master locale.\n      # Main locale of an application. If the value is equal to\n      # locale specified in request, components use templates whose name\n      # doesn't include the locale name. If the value is\n      # \"ja\", requested locale is \"ja\" and the component name is \"MainPage\",\n      # the application uses templated named \"MainPage.html\".\n      # @master_locale = 'ja'\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