
    

    <?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://ocw.cs.pub.ro/courses/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://ocw.cs.pub.ro/courses/feed.php">
        <title>CS Open CourseWare ii:labs:s2:02:tasks</title>
        <description></description>
        <link>http://ocw.cs.pub.ro/courses/</link>
        <image rdf:resource="http://ocw.cs.pub.ro/courses/lib/tpl/arctic/images/favicon.ico" />
       <dc:date>2026-05-27T10:35:58+03:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/00?rev=1710693559&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/01?rev=1710692656&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/02?rev=1710692664&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/03?rev=1710692672&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/04?rev=1710693820&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://ocw.cs.pub.ro/courses/lib/tpl/arctic/images/favicon.ico">
        <title>CS Open CourseWare</title>
        <link>http://ocw.cs.pub.ro/courses/</link>
        <url>http://ocw.cs.pub.ro/courses/lib/tpl/arctic/images/favicon.ico</url>
    </image>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/00?rev=1710693559&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-17T18:39:19+03:00</dc:date>
        <title>00. [10p] Getting Started</title>
        <link>http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/00?rev=1710693559&amp;do=diff</link>
        <description>00. [10p] Getting Started

First, download the [skeleton archive (.zip)] and unzip it.

It has the following structure:


├── initial_design.html  # initial HTML template
├── public/
│   ├── bootstrap/ # bootstrap sources
│   ├── images/
│   └── style.css  # main stylesheet
├── server.py      # server-side application
└── templates/     # Jinja templates</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/01?rev=1710692656&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-17T18:24:16+03:00</dc:date>
        <title>01. [30p] Minor Design Changes</title>
        <link>http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/01?rev=1710692656&amp;do=diff</link>
        <description>01. [30p] Minor Design Changes

Our customer wants to make some changes to the website's design:

	*  Add a header image with our logo at the top
			*  Several candidates are present inside public/images/;
			*  You could either use the CSS background property, or just the old-school &lt;img&gt; tag;
			*  Hint: check out style.css for existing definitions!</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/02?rev=1710692664&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-17T18:24:24+03:00</dc:date>
        <title>02. [20p] Hyper-linking multiple pages</title>
        <link>http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/02?rev=1710692664&amp;do=diff</link>
        <description>02. [20p] Hyper-linking multiple pages

Time to add a second HTML page:

	*  As expected, copy + paste your initial HTML with a new name, e.g.: second.html;
	*  Link together the two .html pages (in each HTML page, find the &lt;a class=”...” href=”..”&gt; links inside the #navbarToggle div and edit the hrefs to point to each-other);</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/03?rev=1710692672&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-17T18:24:32+03:00</dc:date>
        <title>03. [30p] Firing up the Flask backend</title>
        <link>http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/03?rev=1710692672&amp;do=diff</link>
        <description>03. [30p] Firing up the Flask backend

First, let's understand how Flask serves files:

	*  Download a random photo from the Internet (e.g., your favorite snake species) and place it into public/myimage.jpg (or use whatever name you wish, but keep this directory!);
	*  Start up the Flask server (python3 server.py) and point your browser to &lt;http://localhost:5000/public/myimage.jpg&gt;, it should display your image.
	*  Copy/rename or download another image directly to your project's root, alongside…</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/04?rev=1710693820&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-17T18:43:40+03:00</dc:date>
        <title>04. [10p] Serving dynamic content</title>
        <link>http://ocw.cs.pub.ro/courses/ii/labs/s2/02/tasks/04?rev=1710693820&amp;do=diff</link>
        <description>04. [10p] Serving dynamic content

Finally, we shall see how dynamic content can be interpolated 

	*  Edit the website's second HTML page, enter {{mycontent}} (this literal text!) as content somewhere inside the main content block: 

&lt;div class=&quot;content-box main-content&quot;&gt;
...
  {{mycontent}}
...</description>
    </item>
</rdf:RDF>
