mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Clean some code and add documentation
This commit is contained in:
parent
06685bbe13
commit
9b05a0bc8e
15 changed files with 208 additions and 140 deletions
|
@ -1,6 +1,3 @@
|
|||
require 'yaml'
|
||||
require 'cgi'
|
||||
|
||||
#translate( id [,category ,lang] )
|
||||
#Return translated string using translations files
|
||||
|
||||
|
@ -17,7 +14,11 @@ require 'cgi'
|
|||
#/en/vocabulary#wallet when the page is in english or
|
||||
#/fr/vocabulaire#porte-monnaie when the page is in french.
|
||||
|
||||
require 'yaml'
|
||||
require 'cgi'
|
||||
|
||||
module Jekyll
|
||||
|
||||
class TranslateTag < Liquid::Tag
|
||||
|
||||
def initialize(tag_name, id, tokens)
|
||||
|
@ -82,6 +83,7 @@ module Jekyll
|
|||
text
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Liquid::Template.register_tag('translate', Jekyll::TranslateTag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue