Spoova 2.1!
This version release is focused on improving some code syntaxes and fixing some minor bugs in the previous release. This is coming as a step towards reaching a stable version release in the upcoming version 2.5.0. The improvements on this version are discussed below:

Live server update

Countdown was introduced to spoova's live server in the version 2.0.0 of the framework. However, it was noticed that an error was returned after the live server terminates when a resource it not found and the countdown is reached. This error has been fixed in the current version.


Command-line Backup

The command-line php mi backup command was used to create project backups. In the previous version, it requires specifying the backup folder where the backup files are stored at every instance when a backup is to be created. Since naturally, the backup/ directory is reserved for backups, the cli has now been updated to use only that directory when storing or clearing backups. This means that developers will not be required to specify their backup directory any longer when running this command.


Intersect.js

The IntersectJS plugin documentation was missing in the previous version. This version sees to it that the documentation is added while the javascript plugin have also been improved. However, note that the documentation does not provide any information on the improved changes but it only provides required information on the newly improved version. You can find the documentation here.


Template Directive : @styles
@styles
The template directive @styles is used to pull css layout template files to a specific position of the html content of a web page usually the top of the page. A bug was found in the previous version that affects styles loaded from external php layout files through the @lay() directive which prevented the styles from the imported layout from being pulled to the declared postion of the html content. This bug has been addressed in this version which means that all styles loaded from styles layout will now be pulled to the position where @styles is declared.

@head()
The new directive @head() is a newly introduced directive. It ensures that the title of a page can be set in a main template file which can later be updated in child templates using the @title() directive. Assuming we have a main template file as shown below
  <html>

    <head>
        @head('default page title')
    </head>

    <body>
        @yield()
    </body>

  </html>
                                        
Using main.rex.php as the sample name of the template file above, we can easily rename the page with the @title() directive as shown below:
  @template('main')

    @title('new page title')

  @template;
                                        
The child template will remember to overide the default name set in the main template file. For more template directives visit here


Boostrap Icons

After the release of the previous version, it was noticed that the bootstrap icons were missing due to an accidental removal from the previous release. These icons have not only been added back into the framework but they have been updated. Check features to see the new version.


For more details on spoova versions, you can track the spoova version updates from here.