Sha256: 86d01c1245dcc3cf5c4b8f4e9ca53e59e60c4b6de015ec3cea2b238901913bdd

Contents?: true

Size: 329 Bytes

Versions: 4

Compression:

Stored size: 329 Bytes

Contents

##
# Application Helper 是适用于 HTML 与 React 相关的视图辅助模块。

module Repres::React::ApplicationHelper

  ##
  # 调用 repres/react/script 这个局部脚本, options 是传递的参数。
  def react_script(options = {})
    render partial: 'repres/react/script', locals: { options: options }
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
repres-react-2.0 app/helpers/repres/react/application_helper.rb
repres-react-1.4.1 app/helpers/repres/react/application_helper.rb
repres-react-1.4 app/helpers/repres/react/application_helper.rb
repres-react-1.3.1 app/helpers/repres/react/application_helper.rb