webwml/include
2016-11-30 19:55:08 +01:00
..
blog-recent.wmi Add some comments to include/blog-recent.wmi 2014-10-28 15:34:36 +01:00
dlhead.wmi Update dowload links 2015-04-28 10:53:42 +00:00
donatefoot.wmi update donate footer 2015-12-08 18:36:20 +00:00
donatehead.wmi Bug 20677: Update alternative payments page 2016-11-17 18:14:18 -05:00
foot.wmi Bug 20734: Fix links and redirects for new donation site 2016-11-22 01:02:06 -05:00
functions.wmi switch to Goldstein's idea of $lang/$dir/$page to keep all languages in 2010-07-14 19:39:08 +00:00
head.wmi Bug 20465: Call it 'Tor Browser', not 'The Tor Browser' 2016-10-25 16:53:29 -04:00
info.wmi fix run-on sentence 2010-10-09 23:16:47 +00:00
lang.wmi Adding ja to lang.wmi as well 2016-01-27 08:42:32 +00:00
links.wmi Attempt to fix stable release notes link 2015-07-06 03:18:47 +02:00
mirrors-table.wmi Tor Mirror update for 9/8/2016 at 0350 AM 2016-09-08 14:39:08 +02:00
navigation.wmi Bug 20734: Fix links and redirects for new donation site 2016-11-22 01:02:06 -05:00
perl-globals.wmi we do not need ar-se 2011-09-10 16:54:41 +00:00
README first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
side.wmi first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
thankyou-head.wmi Remove the ANNOUNCE_RSS hack as per ticket 4951 2012-01-24 23:54:07 +00:00
tor-mirrors.csv Tor Mirror update for 9/8/2016 at 0350 AM 2016-09-08 14:39:08 +02:00
versions.wmi Add new Tor Browser version: 6.0.7 2016-11-30 19:55:08 +01:00

Here's a brief overview of how our wml set-up works.
----------------------------------------------------

Here's a typical wml file:
https://svn.torproject.org/svn/website/trunk/en/bridges.wml

The top of the file has:

  ## translation metadata
  # Revision: $Revision$
  # Translation-Priority: 1-high

  #include "head.wmi" TITLE="Tor: Bridges"

  <div class="main-column">

and the bottom of the file has:

    </div><!-- #main -->

  #include <foot.wmi>

and the middle is standard html, plus a few extra tags like
<page> that we've added to automatically link to the translated
pages when they exist. So that wml page produces this html page:
https://www.torproject.org/bridges aka
https://www.torproject.org/bridges.html.en

Then head.wmi and foot.wmi are just other mostly-html files you import
to handle the repeat parts of each page (well, that plus some embedded
perl scripts to generate some of the static content).
https://svn.torproject.org/svn/website/trunk/include/head.wmi
https://svn.torproject.org/svn/website/trunk/en/foot.wmi

You can basically ignore the wml part of them, and to a first
approximation just think of them as more html.

So in summary, wml is like html with a bit more markup.

----------------------------------------------------

Where it gets interesting is the download page:
https://svn.torproject.org/svn/website/trunk/en/easy-download.wml

It has the standard header and footer section, but in the body of the page
it includes links like <a href="<package-osx-bundle-stable>". Rather than
putting URLs and Tor versions into every wml page, and then requiring
the translators to update their page whenever we bump a version number,
we instead define each URL and version as a new wml element:
https://svn.torproject.org/svn/website/trunk/include/versions.wmi