1) HTML: <tag> random text </tag>
HAML: %tag random text
2) For inner tags (please note: whitespace indentations here are meaningful in HAML, unlike in HTML):
HTML: <tag> random text
<subtag> other text </subtag>
</tag>
HAML: %tag random text
%subtag other text
3) For the CSS selector "class" with a random HTML element, say <ul>:
HTML: <ul class="ACSSClass"> random text </ul>
HAML: %ul.ACSSClass random text
4) For the CSS selector "id" with a random HTML element, say <article>:
HTML: <article id="ACSSID"> random text </article>
HAML: %article#ACSSID random text
5) For the CSS selector "class" with the div HTML element:
HTML: <div class="randomclass"> some text </div>
HAML: .randomclass some text
6) For the CSS selector "id" with the div HTML element:
HTML: <div id="randomid"> some text </div>
HAML: #randomid some text
7) For combining two CSS classes in the same tag -
HTML: <div class="class1 class2"> some random text </div>
HAML: .class1.class2 some random text
8) For embedded Ruby code -
HTML: <%= yield %>
HAML: = yield
Note: You can always write normal HTML code in a HAML document.
Sometimes we face the warning below in the Plesk control panel:-
"Warning: You are currently operating within the grace period of your product license. To update your product license, select the Retrieve Keys option on the License Management page."
Here, we need to follow the steps below to retrieve the new license key:-
1. Login to your Plesk client as an admin.
2. Click on the "Tools & Settings" option and then click the "License Management" option or click on the "License Management page" option on the warning message.
3. Click "Retrieve Keys".
4. You should be directed to the "Key Update Status" page with a new key expiration date.
That's all.
After this you'll see that a new key has been updated in the Plesk control panel.
JavaScript is a declarative language (it communicates intent). HTML is an imperative language (concerned with the look and how it is all rendered).
Directives label DOM elements (much like CSS classes, attributes or element names). They allow AngularJS's HTML compiler ($compile) to associate certain behavior with the element. AngularJS comes with many such directives already (starting with ng-, like ng-controller) and you can even create your own directives.
AngularJS applications have no "main" method - dependencies drive the application forward. The view component (the DOM) is the main driver behind the application. The view creates an instance of the controller with the ng-controller tag and the controller needs the model. The model is the easiest component to test because it does not depend on other components.
AngularJS acts as the frontend, whereas Rails acts as the backend and provides the RESTful API.
With JavaScript frameworks like AngularJS, JSON is generally the language used to receive messages from the server (rather than XML).
The Devise and OmniAuth Ruby gems can take care of authentication and user logins.