Fluid Templates How To Use

  • Advertisement ( why? )
     

    austin350s10, 25th Jan 2016 12:33 pm

    I am very new to HTML-Kit Tools. I am switching from Dreamweaver because the cost is outrageous! The one thing I loved about Dreamweaver is how they utilize templates. I created one main template file that contained a bunch editable regions. Anytime I make code changes outside the editable regions Dreamweaver would push the changes to all the files associated to the main template.

    So far it sounds like HTML-Kit Tools has a feature similar to this, but I can't find a single lick of information on how it works. All I know is that it has something to do with the use of Fluid Templates.

    Some of my main questions are:

    1. how to properly structure/store the main template file
    2. how to create new documents from the main template
    3. how to update associated files when main template changes

    If anyone has a detailed how-to document or a video that would be helpful.

    • HTML-Kit Support, 25th Jan 2016 12:49 pm

      On 1/25/2016 12:33 PM, austin350s10 wrote:

      I am very new to HTML-Kit Tools. I am switching from Dreamweaver
      because the cost is outrageous! The one thing I loved about
      Dreamweaver is how they utilize templates. I created one main
      template file that contained a bunch editable regions. Anytime I make
      code changes outside the editable regions Dreamweaver would push the
      changes to all the files associated to the main template.

      So far it sounds like HTML-Kit Tools has a feature similar to this,
      but I can't find a single lick of information on how it works. All I
      know is that it has something to do with the use of Fluid Templates.

      Some of my main questions are:

      1. how to properly structure/store the main template file
      2. how to create new documents from the main template
      3. how to update associated files when main template changes

      If anyone has a detailed how-to document or a video that would be
      helpful.

      Hi,

      Dreamweaver being a WYSIWYG editor and HTML-Kit being a code editor, I'm
      afraid the templates are not going to be comparable by any means.

      The easiest way to see how fluid templates work in Tools is through the
      "File > New > Updated On datestamp in a fluid template" menu option.
      When you save the newly created file, it'll update marked sections. It's
      a simple and code-centric template.

      If you like Dreamweaver's templates and get enough return from them,
      you're unlikely to find anything better also given wide adoption. I
      don't work for them! just sharing my opinion if it helps.

      Chami

      • austin350s10, 25th Jan 2016 12:55 pm

        It sounds like "Updated On datestamp in a fluid template" is what I am looking for. Would you happen to know where I could find additional documentation on this.

        I tried playing around with that feature and it looks like I can create editable and non-editable regions. I just don't know how to save and link to other documents.

        • HTML-Kit Support, 25th Jan 2016 2:45 pm

          On 1/25/2016 12:55 PM, austin350s10 wrote:

          It sounds like "Updated On datestamp in a fluid template" is what I
          am looking for. Would you happen to know where I could find
          additional documentation on this.

          I tried playing around with that feature and it looks like I can
          create editable and non-editable regions. I just don't know how to
          save and link to other documents.

          Let's see if I can't describe usage in a single post... :)

          So in the template file (say ft1.hts) you'd have something like this:

               YES - this section persists
          
               <!-- editable:begin id="unique_id_1" -->
               NO - this section does not
               <!-- editable:end -->
          
               YES
          
               <!-- editable:begin id="unique_id_2" -->
               NO
               <!-- editable:end -->
          
               YES
          

          Files based on ft1.hts (say file1.html and file2.html) would look like this:

               <!-- template:begin file="ft1.hts" -->
               OVERWRITTEN - comes from the template
          
               <!-- editable:begin id="unique_id_1" -->
          
               CUSTOM - this section stays in this file
          
               <!-- editable:end -->
          
               OVERWRITTEN
          
               <!-- editable:begin id="unique_id_2" -->
          
               CUSTOM
          
               <!-- editable:end -->
          
               OVERWRITTEN
               <!-- template:end -->
          

          You can change "YES" sections in the template (ft1.hts). "NO" sections
          are placeholders for sections customized in each child file (file1.html
          and file2.html).

          Changes made to the template will be reflected in child files
          (file1.html, file2.html and so on) the next time you open and save them.

          Chami

          • austin350s10, 25th Jan 2016 3:28 pm

            OK so the main template would look like so:


            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd">
            <html>
            <head>

            <title>Untitled</title>

            </head>
            <body>
            YES - this section persists

            NO - this section does not - do not change

            YES - just changed

            NO

            YES
            </body>
            </html>

            The files the reference the template would look like this:

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd">
            <html>
            <head>

            <title>test</title>

            </head>
            <body>
            YES - this section persists
            ...
            YES - just changed
            ...
            YES
            </body>
            </html>

            To update just go the the Local Folder and batch "Update Templated Documents". Is that correct?

            • austin350s10, 25th Jan 2016 3:30 pm

              sorry that didn't work the way I wanted it to. What are the posting rules to post code?

              • HTML-Kit Support, 25th Jan 2016 3:38 pm

                On 1/25/2016 3:30 PM, austin350s10 wrote:

                sorry that didn't work the way I wanted it to. What are the posting
                rules to post code?

                What you have is correct. I can see the tags you've posted in my NNTP
                newsreader.

                This forum is deprecated for:

                https://support.htmlkit.com/forums/

                Chami

                • austin350s10, 26th Jan 2016 12:19 pm

                  Thank you...works just like Dreamweaver did. A bit different but works just as good!

                  • HTML-Kit Support, 26th Jan 2016 12:24 pm

                    On 1/26/2016 12:19 PM, austin350s10 wrote:

                    Thank you...works just like Dreamweaver did. A bit different but
                    works just as good!

                    If it works for you I'm glad :)

                    Chami

                    • bill, 27th Jan 2016 6:36 am

                      On 1/26/2016 1:24 PM, HTML-Kit Support wrote:

                      On 1/26/2016 12:19 PM, austin350s10 wrote:

                      Thank you...works just like Dreamweaver did. A bit different but
                      works just as good!

                      If it works for you I'm glad :)

                      Chami

                      What !? An AI expressing emotion ?
                      Great programming.

                      bill

                      • austin350s10, 3rd Feb 2016 12:11 pm

                        OK not sure why all the sudden it will not work, but now when I attempt to batch update the local folder i receive the following error message:

                        Could not open template file “my-template.hts”
                        Template file/reference not specificed in “

                        It no longer updates the files that reference the template. Any idea why it would do this all the sudden when I didn't change anything?

                        • HTML-Kit Support, 5th Feb 2016 8:25 am

                          On 2/3/2016 12:11 PM, austin350s10 wrote:

                          OK not sure why all the sudden it will not work, but now when I
                          attempt to batch update the local folder i receive the following
                          error message:

                          Could not open template file “my-template.hts” Template
                          file/reference not specificed in “

                          It no longer updates the files that reference the template. Any idea
                          why it would do this all the sudden when I didn't change anything?

                          Please make sure that the *.hts file is in the same folder as the files
                          referencing it. You could also try specifying the full path to it.

                          Let me know if this doesn't help.

                          Chami

                          • austin350s10, 5th Feb 2016 10:43 am

                            It's a super simple test site, so my template is in the same folder as the file that reference the template. at the top the the referencing files I am using the following line of code per your instruction:

                            template:begin file="my-template.hts"

                            my-template.hts is my template file.

                            It worked fine when I originally set it up so I'm confused as to why is no longer works?

                            • HTML-Kit Support, 6th Feb 2016 12:29 pm

                              On 2/5/2016 10:43 AM, austin350s10 wrote:

                              It's a super simple test site, so my template is in the same folder
                              as the file that reference the template. at the top the the
                              referencing files I am using the following line of code per your
                              instruction:

                              template:begin file="my-template.hts"

                              my-template.hts is my template file.

                              It worked fine when I originally set it up so I'm confused as to why
                              is no longer works?

                              Maybe try reopening Tools. If that doesn't work, try placing just the
                              *.hts file and one other file that reference it in the same folder and
                              try the batch action. I'm wondering if it's running into a parsing error
                              in one of the referring files.

                              Chami

                              • austin350s10, 12th Feb 2016 10:40 am

                                Same error as before:
                                Shut down and restarted machine
                                created a whole new project file
                                copied original hts and one of the html files into project folder
                                project folder only contains two files

                                hts file code:

                                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                                "http://www.w3.org/TR/html4/loose.dtd">
                                <html>
                                <head>

                                <title>Untitled</title>

                                </head>
                                <body>
                                YES - this section persists

                                NO - this section does not - do not change

                                YES - just changed

                                NO

                                YES
                                </body>
                                </html>

                                html code:

                                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                                "http://www.w3.org/TR/html4/loose.dtd">
                                <html>
                                <head>

                                <title>test</title>

                                </head>
                                <body>
                                YES - this section persists
                                ...
                                YES - just changed
                                ...
                                YES
                                </body>
                                </html>

                                I don't get it??

    • austin350s10, 25th Jan 2016 12:55 pm

      It sounds like "Updated On datestamp in a fluid template" is what I am looking for. Would you happen to know where I could find additional documentation on this.

      I tried playing around with that feature and it looks like I can create editable and non-editable regions. I just don't know how to save and link to other documents.

      • HTML-Kit Support, 25th Jan 2016 2:45 pm

        On 1/25/2016 12:55 PM, austin350s10 wrote:

        It sounds like "Updated On datestamp in a fluid template" is what I
        am looking for. Would you happen to know where I could find
        additional documentation on this.

        I tried playing around with that feature and it looks like I can
        create editable and non-editable regions. I just don't know how to
        save and link to other documents.

        Let's see if I can't describe usage in a single post... :)

        So in the template file (say ft1.hts) you'd have something like this:

             YES - this section persists
        
             <!-- editable:begin id="unique_id_1" -->
             NO - this section does not
             <!-- editable:end -->
        
             YES
        
             <!-- editable:begin id="unique_id_2" -->
             NO
             <!-- editable:end -->
        
             YES
        

        Files based on ft1.hts (say file1.html and file2.html) would look like this:

             <!-- template:begin file="ft1.hts" -->
             OVERWRITTEN - comes from the template
        
             <!-- editable:begin id="unique_id_1" -->
        
             CUSTOM - this section stays in this file
        
             <!-- editable:end -->
        
             OVERWRITTEN
        
             <!-- editable:begin id="unique_id_2" -->
        
             CUSTOM
        
             <!-- editable:end -->
        
             OVERWRITTEN
             <!-- template:end -->
        

        You can change "YES" sections in the template (ft1.hts). "NO" sections
        are placeholders for sections customized in each child file (file1.html
        and file2.html).

        Changes made to the template will be reflected in child files
        (file1.html, file2.html and so on) the next time you open and save them.

        Chami

        • austin350s10, 25th Jan 2016 3:28 pm

          OK so the main template would look like so:


          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd">
          <html>
          <head>

          <title>Untitled</title>

          </head>
          <body>
          YES - this section persists

          NO - this section does not - do not change

          YES - just changed

          NO

          YES
          </body>
          </html>

          The files the reference the template would look like this:

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd">
          <html>
          <head>

          <title>test</title>

          </head>
          <body>
          YES - this section persists
          ...
          YES - just changed
          ...
          YES
          </body>
          </html>

          To update just go the the Local Folder and batch "Update Templated Documents". Is that correct?

          • austin350s10, 25th Jan 2016 3:30 pm

            sorry that didn't work the way I wanted it to. What are the posting rules to post code?

            • HTML-Kit Support, 25th Jan 2016 3:38 pm

              On 1/25/2016 3:30 PM, austin350s10 wrote:

              sorry that didn't work the way I wanted it to. What are the posting
              rules to post code?

              What you have is correct. I can see the tags you've posted in my NNTP
              newsreader.

              This forum is deprecated for:

              https://support.htmlkit.com/forums/

              Chami

              • austin350s10, 26th Jan 2016 12:19 pm

                Thank you...works just like Dreamweaver did. A bit different but works just as good!

                • HTML-Kit Support, 26th Jan 2016 12:24 pm

                  On 1/26/2016 12:19 PM, austin350s10 wrote:

                  Thank you...works just like Dreamweaver did. A bit different but
                  works just as good!

                  If it works for you I'm glad :)

                  Chami

                  • bill, 27th Jan 2016 6:36 am

                    On 1/26/2016 1:24 PM, HTML-Kit Support wrote:

                    On 1/26/2016 12:19 PM, austin350s10 wrote:

                    Thank you...works just like Dreamweaver did. A bit different but
                    works just as good!

                    If it works for you I'm glad :)

                    Chami

                    What !? An AI expressing emotion ?
                    Great programming.

                    bill

                    • austin350s10, 3rd Feb 2016 12:11 pm

                      OK not sure why all the sudden it will not work, but now when I attempt to batch update the local folder i receive the following error message:

                      Could not open template file “my-template.hts”
                      Template file/reference not specificed in “

                      It no longer updates the files that reference the template. Any idea why it would do this all the sudden when I didn't change anything?

                      • HTML-Kit Support, 5th Feb 2016 8:25 am

                        On 2/3/2016 12:11 PM, austin350s10 wrote:

                        OK not sure why all the sudden it will not work, but now when I
                        attempt to batch update the local folder i receive the following
                        error message:

                        Could not open template file “my-template.hts” Template
                        file/reference not specificed in “

                        It no longer updates the files that reference the template. Any idea
                        why it would do this all the sudden when I didn't change anything?

                        Please make sure that the *.hts file is in the same folder as the files
                        referencing it. You could also try specifying the full path to it.

                        Let me know if this doesn't help.

                        Chami

                        • austin350s10, 5th Feb 2016 10:43 am

                          It's a super simple test site, so my template is in the same folder as the file that reference the template. at the top the the referencing files I am using the following line of code per your instruction:

                          template:begin file="my-template.hts"

                          my-template.hts is my template file.

                          It worked fine when I originally set it up so I'm confused as to why is no longer works?

                          • HTML-Kit Support, 6th Feb 2016 12:29 pm

                            On 2/5/2016 10:43 AM, austin350s10 wrote:

                            It's a super simple test site, so my template is in the same folder
                            as the file that reference the template. at the top the the
                            referencing files I am using the following line of code per your
                            instruction:

                            template:begin file="my-template.hts"

                            my-template.hts is my template file.

                            It worked fine when I originally set it up so I'm confused as to why
                            is no longer works?

                            Maybe try reopening Tools. If that doesn't work, try placing just the
                            *.hts file and one other file that reference it in the same folder and
                            try the batch action. I'm wondering if it's running into a parsing error
                            in one of the referring files.

                            Chami

                            • austin350s10, 12th Feb 2016 10:40 am

                              Same error as before:
                              Shut down and restarted machine
                              created a whole new project file
                              copied original hts and one of the html files into project folder
                              project folder only contains two files

                              hts file code:

                              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                              "http://www.w3.org/TR/html4/loose.dtd">
                              <html>
                              <head>

                              <title>Untitled</title>

                              </head>
                              <body>
                              YES - this section persists

                              NO - this section does not - do not change

                              YES - just changed

                              NO

                              YES
                              </body>
                              </html>

                              html code:

                              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                              "http://www.w3.org/TR/html4/loose.dtd">
                              <html>
                              <head>

                              <title>test</title>

                              </head>
                              <body>
                              YES - this section persists
                              ...
                              YES - just changed
                              ...
                              YES
                              </body>
                              </html>

                              I don't get it??

                              • HTML-Kit Support, 12th Feb 2016 11:53 am

                                On 2/12/2016 10:40 AM, austin350s10 wrote:

                                Same error as before:
                                Shut down and restarted machine
                                created a whole new project file
                                copied original hts and one of the html files into project folder
                                project folder only contains two files

                                ...

                                Please try specifying the full path to the .hts file in
                                file="my-template.hts"

                                Chami

                                • austin350s10, 16th Feb 2016 7:42 am

                                  that was it! Thats so weird though. When I first tried it all I had to do is use the relative file path not the full file path. It is possible I did not define my local working folder properly or something?