Sha256: a83ac020923aca06d85f5a06858f121fa3c17da2ae1677e8ab91c534b9b2c43e
Contents?: true
Size: 621 Bytes
Versions: 7
Compression:
Stored size: 621 Bytes
Contents
module Jekyll module InterlinearGlossFilter # Liquid just uses the method name as the filter name; there's no extra level of name-mapping like there is with tags and blocks def gloss(input) # will be available as the "gloss" filter @text = input puts "<table><tbody><tr>" lexemes = @text.split(" ") lexemes.each do |word| puts "<td class=\"gloss_item\">#{word}</td>" end puts "</tr></tbody><table>" # morphemic_analysis # morphemic_gloss end end end Liquid::Template.register_filter(Jekyll::InterlinearGlossFilter)
Version data entries
7 entries across 7 versions & 1 rubygems