Skip to content
Browse files

Removed Smalltalk; fixed languages order; removed asterisk from Brain…

…fuck.
  • Loading branch information...
1 parent adf5273 commit 1d7d6d32d4abb2f1619ec008ad340ec32d06efea @max99x max99x committed Sep 6, 2011
View
0 langs/smalltalk/examples-console.txt
No changes.
View
0 langs/smalltalk/examples-editor.txt
No changes.
View
14 languages.coffee
@@ -8,22 +8,14 @@
editor: '/langs/qbasic/examples-editor.txt'
console: '/langs/qbasic/examples-console.txt'
help_link: 'http://westcompsci.pima.edu/cis100/'
- Forth:
+ Forth:
name: 'Forth'
tagline: 'An interactive stack-oriented language.'
shortcut: 'r'
category: 'Classic'
examples:
editor: '/langs/forth/examples-editor.txt'
- console: '/langs/forth/examples-console.txt'
- Smalltalk:
- name: 'Smalltalk'
- tagline: 'The grand-daddy of OOP.'
- shortcut: 't'
- category: 'Classic'
- examples:
- editor: '/langs/smalltalk/examples-editor.txt'
- console: '/langs/smalltalk/examples-console.txt'
+ console: '/langs/forth/examples-console.txt'
LOLCODE:
name: 'LOLCODE'
tagline: 'The BASIC language of lolcats.'
@@ -34,7 +26,7 @@
console: '/langs/lolcode/examples-console.txt'
help_link: 'http://lolcode.com/specs/1.2'
Brainfuck:
- name: 'Brainf*ck'
+ name: 'Brainfuck'
tagline: 'A pure Turing machine controller.'
shortcut: 'f'
category: 'Esoteric'
View
27 pager.coffee
@@ -28,35 +28,36 @@ LANG_TEMPLATE =
"""
render: ->
- html = ''
+ html = []
categories_order = [
'Classic'
'Practical'
'Esoteric'
'Web'
]
template_data =
- Classic:
+ Classic:
category: 'Classic'
- languages: []
- Practical:
+ languages: ['QBasic', 'Forth']
+ Practical:
category: 'Practical'
- languages: []
+ languages: ['Python', 'Lua', 'Scheme']
Esoteric:
category: 'Esoteric'
- languages: []
+ languages: ['Emoticon', 'Brainfuck', 'LOLCODE', 'Unlambda', 'Bloop']
Web:
category: 'Web'
- languages: []
+ languages: ['JavaScript', 'Traceur', 'Move', 'Kaffeine', 'CoffeeScript']
- for lang_name, lang of REPLIT.Languages
- lang.system_name = lang_name
- template_data[lang.category].languages.push lang
-
+ for _, category of template_data
+ for lang_name, index in category.languages
+ lang = REPLIT.Languages[lang_name]
+ lang.system_name = lang_name
+ category.languages[index] = lang
for category in categories_order
- html += @language_group template_data[category]
+ html.push @language_group template_data[category]
- return html
+ return html.join ''
# Constant page settings.

0 comments on commit 1d7d6d3

Please sign in to comment.
Something went wrong with that request. Please try again.