The final working version has this
    require 'dryml/template_environment'
    require 'dryml/dryml_builder'
    require 'dryml/parser'
    require 'dryml/parser/document'
    require 'dryml/parser/source'
    require 'dryml/parser/elements'
    require 'dryml/parser/tree_parser'
    require 'dryml/parser/base_parser'
    require 'dryml/parser/element'
    require 'dryml/parser/attribute'
    require 'dryml/parser/text'
    require 'dryml/scoped_variables'
    
    require 'dryml'
    require 'dryml/railtie'

As far as I can see the only difference of production environment is eager 
loading.

On Monday, July 7, 2014 11:34:00 AM UTC+2, umuro wrote:
>
> Greate. It works on development as you tell me.
>
> However, it did not work when I deployed to heroku. It was not finding 
> DRYML related classes. And I started exceptions one by one:
>
>>     require 'dryml/template_environment'
>>     require 'dryml/dryml_builder'
>>     require 'dryml/parser'
>>     require 'dryml/parser/document'
>>     require 'dryml/parser/source'
>>     require 'dryml/parser/elements'
>>     require 'dryml/parser/tree_parser'
>>     require 'dryml/parser/base_parser'
>>     require 'dryml/parser/element'
>>     require 'dryml/parser/attribute'
>>     require 'dryml/parser/text'
>
> ...
>
>  
> No this is not the right way! How can I require/load the dryml parser?
>
> On Thursday, July 3, 2014 9:32:05 PM UTC+2, umuro wrote:
>>
>> For *ERB* you can do this:  
>>  template = ERB.new File.new("app/views/oeb_stylesheets/show.css.erb").
>> read, nil, "%"
>>
>> Is there a way to do it for *DRYML*?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hobousers+unsubscr...@googlegroups.com.
To post to this group, send email to hobousers@googlegroups.com.
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to