Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Clarifying use of styles/scripts #74

Closed
wants to merge 2 commits into from
Closed

Conversation

CopyJosh
Copy link

@CopyJosh CopyJosh commented Jun 3, 2016

Needs to be clear that two stylesheets or scripts cannot have the same name when all the examples overuse 'theme'

Needs to be clear that two stylesheets or scripts cannot have the same name when all the examples overuse 'theme'
@@ -109,9 +109,10 @@ To generate a route to a static asset, use the `getStatic` method of the `UrlPro
```

### Include CSS in view file
To include a CSS file in your view, call the `style helper` from the `View`. You can define its dependencies through the second parameter.
To include a CSS file in your view, call the `style helper` from the `View`. The first parameter is a unique identifier for the stylesheet, while the second paramter is the path of the stylesheet where `theme:` is a reference to the root directory of a package named 'theme'. You can define its dependencies through the third parameter.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in "while the second paramter" ;)

@CopyJosh
Copy link
Author

Thanks pleone, fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants