You already learned how to use the template resource to reference the HTML file for your home page.
You're ready to add placeholders to your HTML file that are filled in with info about your node as the recipe runs.
This is a tutorial for ajax use with Rails conventions.
For illustrative purposes, we’ll build a single-page task list app.
You can access these attributes from your Chef recipes.
For our home page, we want to display the server's fully qualified domain name (FQDN).
There are a few things that we'll need to do in order to implement this behavior.To do so, some initial setup is necessary: Ajax (Asynchronous Java Script and XML) is used as a mechanism for sending and retrieving data asynchronously (in the background).While XML can certainly be used with ajax, it is not limited to this format.Rai-jax: This tutorial serves an illustrative example of the significant improvement a little ajax and some styling can provide to an otherwise dull and static app.You can use the Static Task List repo as a starting point for this tutorial.