folio-slim

Review .slim templates for Folio CMS formatting and best practices.

10|2|Updated Jul 10, 2017
One-click install
npx skills add https://github.com/sinfin/folio --skill folio-slim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: folio-slim
Source: https://github.com/sinfin/folio/tree/main/.skills/folio-slim
Command: npx skills add https://github.com/sinfin/folio --skill folio-slim

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Helps developers adhere to best practices for writing .slim templates in the Folio CMS, ensuring clean, maintainable, and efficient markup.

Core Features & Use Cases

  • Slim Best Practices: Provides guidance on avoiding inline Ruby, managing multi-line attributes, and proper class usage.
  • Syntax Recommendations: Offers advice on using shorthand classes and boolean attributes effectively.
  • Safe Output Practices: Outlines best practices for outputting data and handling internationalization.

Quick Start

Run 'folio-slim' to review your .slim template for formatting and adherence to Slim best practices.

Frequently Asked Questions about folio-slim

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format Slim templates for Folio CMS to follow best practices?

Slim template best practices for Folio include avoiding inline Ruby, managing multi-line attributes correctly, using shorthand classes effectively, and following safe output practices for data and internationalization.

What are the best practices for Slim syntax in Ruby on Rails Folio applications?

Slim syntax best practices for Folio include avoiding inline Ruby, managing multi-line attributes correctly, using shorthand classes effectively, and following safe output practices for data and internationalization.

How do I handle multi-line attributes and class usage in .slim templates?

To handle multi-line attributes and class usage in .slim templates, apply proper formatting guidance by using shorthand classes and following attribute management rules to ensure maintainable markup.

Do I need to know Slim template syntax to use the Folio CMS formatting guidance?

Yes, you need knowledge of Slim template syntax to use the Folio CMS formatting guidance, as the tool targets developers using Folio and requires familiarity with Slim syntax for effective template review.

What are the limitations when outputting data and handling internationalization in Folio Slim templates?

When outputting data and handling internationalization in Folio Slim templates, you must follow safe output practices to ensure proper rendering and avoid potential markup issues in the CMS application.