Module: Dyndoc::FileWatcher
- Defined in:
- lib/dyndoc-edit.rb
Overview
USED by dyn-html
Class Method Summary collapse
Class Method Details
.get_dyn_html_info(filename, dyn_file, user) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dyndoc-edit.rb', line 4 def FileWatcher.get_dyn_html_info(filename,dyn_file,user) content=File.read(filename) =[] #select current tags from doc_tags_info =Dyndoc::Edit.(content,) ##p [:fw_current_tags, current_tags] doc_tag=(.empty? ? "" : "__ALL_DOC_TAG__") #p [:dyn_file,dyn_file,$1] tmp=dyn_file.split("/") user=tmp[2] if tmp[1]=="users" ##p [:fw_user,user] html_files=Dyndoc::Edit.html_files({doc_tags_info: , dyn_file: dyn_file },user) =html_files.keys[1..-1] if doc_tag=="__ALL_DOC_TAG__" and .empty? current_doc_tag=(.empty? ? doc_tag : [0]) {html_files: html_files, doc_tag: doc_tag, user: user, current_doc_tag: current_doc_tag, current_tags: } end |