package path;

# Versions (for download links)
our $version_asyncweb = "2.0.0-SNAPSHOT";
our $version_mina = "2.0.5";
our $version_ftpserver = "1.0.6";
our $version_sshd = "0.7.0";
our $version_vysper = "0.7";

# All our pages use the same view function
our @patterns = (
    # Basic HTML content
    [qr!^/.*\.html$!, template_page => {} ],
    
    #
    # MINA sub-project pages
    #
    
    # Download MINA Archive page
    [qr!mina\/download\/download-archive\.mdtext$!, template_page => {
        template => "mina/download-archive.html",
        isMina => true, 
        version => $version_mina } ],
    
    # Download MINA Linux BIN page
    [qr!mina\/download\/download-linux-bin\.mdtext$!, template_page => {
        template => "mina/download-linux-bin.html",
        isMina => true, 
        version => $version_mina } ],
    
    # Download MINA Linux DEB page
    [qr!mina\/download\/download-linux-deb\.mdtext$!, template_page => {
        template => "mina/download-linux-deb.html",
        isMina => true, 
        version => $version_mina } ],
    
    # Download MINA Linux RPM page
    [qr!mina\/download\/download-linux-rpm\.mdtext$!, template_page => {
        template => "mina/download-linux-rpm.html",
        isMina => true, 
        version => $version_mina } ],
    
    # Download MINA Mac OS X page
    [qr!mina\/download\/download-macosx\.mdtext$!, template_page => {
        template => "mina/download-macosx.html",
        isMina => true, 
        version => $version_mina } ],
    
    # Download MINA Sources page
    [qr!mina\/download\/download-sources\.mdtext$!, template_page => {
        template => "mina/download-sources.html",
        isMina => true, 
        version => $version_mina } ],
    
    # Download MINA Windows page
    [qr!mina\/download\/download-windows\.mdtext$!, template_page => {
        template => "mina/download-windows.html",
        isMina => true, 
        version => $version_mina } ],

    # MINA page with news
    [qr!mina\/index\.mdtext$!, template_page => {
        template => "mina/index.html",
        isMina => true } ],
    
    # Standard MINA page
    [qr!mina\/.*?\.mdtext$!, template_page => {
        template => "page.html",
        isMina => true } ],
    
    #
    # Apache FtpServer sub-project pages
    #
    
    # Download Apache FtpServer Archive page
    [qr!ftpserver\/download\/download-archive\.mdtext$!, template_page => {
        template => "ftpserver/download-archive.html",
        isFtpServer => true, 
        version => $version_ftpserver } ],
    
    # Download Apache FtpServer Sources page
    [qr!ftpserver\/download\/download-sources\.mdtext$!, template_page => {
        templatapie => "ftpserver/download-sources.html",
        isFtpServer => true, 
        version => $version_ftpserver } ],
    
    # Standard Apache FtpServer page
    [qr!ftpserver\/.*?\.mdtext$!, template_page => {
        template => "ftpserver/page.html",
        isFtpServer => true } ],

    #
    # Apache Sshd sub-project pages
    #

    # Download Apache Sshd Archive page
    [qr!sshd\/download\/download-archive\.mdtext$!, template_page => {
        template => "sshd/download-archive.html",
        isSshd => true,
        version => $version_sshd } ],

    # Download Apache Sshd Sources page
    [qr!sshd\/download\/download-sources\.mdtext$!, template_page => {
        templatapie => "sshd/download-sources.html",
        isSshd => true,
        version => $version_sshd } ],
   
    # Standard Apache Sshd page
    [qr!sshd\/.*?\.mdtext$!, template_page => {
        template => "sshd/page.html",
        isSshd => true } ],

    #
    # Apache Vysper sub-project pages
    #

    # Download Apache Vysper Archive page
    [qr!vysper\/download\/download-archive\.mdtext$!, template_page => {
        template => "vysper/download-archive.html",
        isVysper => true,
        version => $version_vysper } ],

    # Download Apache Vysper Sources page
    [qr!vysper\/download\/download-sources\.mdtext$!, template_page => {
        templatapie => "vysper/download-sources.html",
        isVysper => true,
        version => $version_vysper } ],
   
    # Standard Apache Vysper page
    [qr!vysper\/.*?\.mdtext$!, template_page => {
        template => "vysper/page.html",
        isVysper => true } ],
   
    #
    # Apache AsyncWeb sub-project pages
    #

    # Download Apache AsyncWeb Archive page
    [qr!asyncweb\/download\/download-archive\.mdtext$!, template_page => {
        template => "asyncweb/download-archive.html",
        isAsyncweb => true,
        version => $version_asyncweb } ],

    # Download Apache Asyncweb Sources page
    [qr!asyncweb\/download\/download-sources\.mdtext$!, template_page => {
        templatapie => "asyncweb/download-sources.html",
        isAsyncweb => true,
        version => $version_asyncweb } ],

    # Standard Apache Asyncweb page
    [qr!asyncweb\/.*?\.mdtext$!, template_page => {
        template => "asyncweb/page.html",
        isAsyncweb => true } ],
 
    #
    # Apache MINA project pages
    #
    [qr!^/.*\.mdtext$!, template_page => {
        template => "page.html",
        isSite => true } ]
);

# for specifying interdependencies between files
our %dependencies = ();

1;

=head1 LICENSE

           Licensed to the Apache Software Foundation (ASF) under one
           or more contributor license agreements.  See the NOTICE file
           distributed with this work for additional information
           regarding copyright ownership.  The ASF licenses this file
           to you under the Apache License, Version 2.0 (the
           "License"); you may not use this file except in compliance
           with the License.  You may obtain a copy of the License at

             http://www.apache.org/licenses/LICENSE-2.0

           Unless required by applicable law or agreed to in writing,
           software distributed under the License is distributed on an
           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
           KIND, either express or implied.  See the License for the
           specific language governing permissions and limitations
           under the License.

