Note that there are some explanatory texts on larger screens.

plurals
  1. POHAML runs inline Ruby, but does not render anything
    text
    copied!<pre><code>-#encoding: utf-8 :css .hidden{display:none;} %script{:src=&gt;"/javascripts/jquery.js"} %form{:action=&gt;"https://get724.ccvb.com.tr/Get724/get724uye.aspx",:method=&gt;"post"} %input.hidden{:type=&gt;"text",:name=&gt;"uyeno",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"kkno",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"gectar",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"tutar",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"dcins",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"sipbil",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"sesbil",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"burl",:value=&gt;""} %input.hidden{:type=&gt;"text",:name=&gt;"hurl",:value=&gt;""} - t = Time.now.strftime("%Y%m%d%H%M%S") - puts t %input.hidden{:type=&gt;"text",:name=&gt;"zaman",:value=&gt;"#{t}"} -puts "adfasdf : " + @asdf.to_s -puts "asdf" -puts "asdf : " + @asdf.to_s -puts session[:ewer] -puts session[:zxcv] -puts strtodigest -digest = Digest::SHA1.base64digest(strtodigest) -puts digest -#%input{:type=&gt;"text",:value=&gt;"#{strtodigest}"} -#%input{:type=&gt;"text",:value=&gt;"#{digest}"} %input.hidden{:type=&gt;"text",:name=&gt;"ozet",:value=&gt;"#{digest}"} :javascript $('form').submit(); -puts "End Of Haml" </code></pre> <p>I have a haml like above and i am using it in a Sinatra application. When i run my app</p> <pre><code>haml :problem_haml </code></pre> <p>Every single ruby command works perfectly, but haml does not render anything. Not even a single line, yet every ruby command starts with "-" works absolutely perfect? What could be the cause? Please do not answer "because hidden class hides everything", it is not about css hiding, literally not even a single byte returns from server.</p> <p>Edit:</p> <p>I said the application is a sinatra application before, but it is actually a Padrino application. While padrino is only a few sinatra applications that run inside a main sinatra application and more people knows sinatra, i said sinatra to make the question simpler.</p> <p>Also here is the code that calls haml,</p> <pre><code>def get3DSecure(ccname,price,skul,ccno,cvc) puts "#############################################" puts "get3DSecure function called" puts "#############################################" @ccname = ccname @price = price.to_s + "00" @skul = skul @ccno = ccno @cvc = cvc session[:name] = ccname session[:xmltosend] = makeXmlFor3D session[:sipbil] = UUIDTools::UUID.random_create.to_s.delete!("-") session[:sesbil] = UUIDTools::UUID.random_create.to_s.delete!("-") session[:skul] = skul session[:price] = price session[:ccno] = ccno session[:cvc] = cvc puts "#############################################" puts "get3DSecure function near end, render starts" puts "#############################################" render :adsecure,:layout=&gt;:main end </code></pre> <p>It also writes the puts commands to console without any problems.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload