Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7814209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:07:45+00:00 2026-06-02T05:07:45+00:00

I want to serve static HTML pages using nginx . Then, I will use

  • 0

I want to serve static HTML pages using nginx. Then, I will use jQuery to update DIVs, SPANs, etc via AJAX calls from a Padrino server.

I like creating my web pages in HAML because it’s easier but in production, I don’t want to serve HAML templates. Just raw, HTML at the speed of nginx.

Is there an easy way to do this?

What would be ideal would be a service that automatically renders HAML, partials, etc into the public folder that nginx could serve.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:07:46+00:00Added an answer on June 2, 2026 at 5:07 am

    Simple,

    add padrino-cache to your app

    class SimpleApp < Padrino::Application
      register Padrino::Cache
      enable :caching
    
      get '/foo', :cache => true do
       expires_in 30 # expire cached version at least every 30 seconds
       'Hello world'
      end
    end
    

    Then save wherever you want to serve it:

    set :cache, Padrino::Cache::Store::File.new(Padrino.root('public'))
    

    You can read more here: http://www.padrinorb.com/guides/padrino-cache

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a system that I'm building I want to serve Static files (static HTML
In my application,I want to display some static files(.html,.htm,.txt) which will be uploaded by
I want to serve my css and images from a static cookieless domain. Now
I'm trying to cache Python/flask responses with memcached. I then want to serve the
I want to use a single Doctrine install on our server and serve multiple
I am using ASP.NET MVC 2 & C#. I want to include/embed an html
I have a static HTML web page and I want to set its status
I have a simple web app webapp static images - a.gif pages - test.html
I want build a lightweight cached system (few server-resources) for easy serve pages (without
we want to build a site HABJ (*) starting from some HTML 'demo' pages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.