Skip to content

Commit

Permalink
fixed links
Browse files Browse the repository at this point in the history
  • Loading branch information
voloko committed Mar 8, 2010
1 parent 37602d7 commit c00df0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ukijs.rb
Expand Up @@ -76,6 +76,10 @@ def process_src_paths(content)
haml :exampleList, :locals => { :exampleList => exampleList }
end

get %r{/examples/[^/]+/?$} do
redirect request.path.sub('/examples/', '/examples/core-examples/')
end

get '/examples/*' do
redirect request.path + '/' unless request.path.match(%{/$}) # force trailing slash

Expand Down
8 changes: 4 additions & 4 deletions views/index.haml
Expand Up @@ -28,13 +28,13 @@
%ul
%li Play with simple <a href="http://jsbin.com/iqite/edit">twitter widget</a> code
%li Draft <a href="/docs/">API docs</a> for uki-core
%li Google wave <a href="/examples/wave/" target="_blank">layout</a> in <a href="http://github.com/voloko/ukijs.org/blob/master/examples/wave/wave.js" target="_blank">100 lines</a> of uki code
%li Google wave <a href="/examples/core-examples/wave/" target="_blank">layout</a> in <a href="http://github.com/voloko/ukijs.org/blob/master/examples/core-examples/wave/wave.js" target="_blank">100 lines</a> of uki code
%p.slogan
Uki is a <em>fast</em> and <em>simple</em> JavaScript user interface toolkit for desktop-like web applications.<br />
It comes with a rich view-component library ranging from
<a href="/examples/slider/">Slider</a> to
<a href="/examples/list/">List</a> and
<a href="/examples/splitPane/">SplitPane</a>.
<a href="/examples/core-examples/slider/">Slider</a> to
<a href="/examples/core-examples/list/">List</a> and
<a href="/examples/core-examples/splitPane/">SplitPane</a>.
%p.download
%span.title Download:
%span.variant
Expand Down

0 comments on commit c00df0f

Please sign in to comment.