Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

cleanQuotes

  • cleanQuotes(str: string): string

getCleanSectionData

  • getCleanSectionData(str: string): string | null
  • Extracts the section data from the tag.

    Users can use the shorthand

    @section(name, data)

    Which stands for

    @section(name)@(data)@endsection

    Parameters

    • str: string

      The input string as seen in the source

    Returns string | null

getCleanSectionName

  • getCleanSectionName(str: string): string
  • Extracts the section name from the tag.

    In case the string is quoted, quotes are removed (to support usage à la blade).

    For simplicity, this just looks if there's a comma and uses everything before. It is pretty intuitive when the at-rule is used without quotes as recommended in the doc but counter-intuitively fails to parse @section('aa,bb');

    Parameters

    • str: string

      The input string as seen in the source

    Returns string

Object literals

Const EndSectionRule

EndSectionRule: object

name

name: string = "endsection"

analyze

Const ParentRule

ParentRule: object

name

name: string = "parent"

analyze

Const SectionRule

SectionRule: object

name

name: string = "section"

analyze

initContext

  • initContext(ctx: Context): void

Const ShowRule

ShowRule: object

name

name: string = "show"

analyze

Const YieldRule

YieldRule: object

name

name: string = "yield"

analyze

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc