Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Asset builder example #425

Merged
merged 2 commits into from
Oct 18, 2017
Merged

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Oct 14, 2017

Add step-by-step example
@totten - thanks for the train station tutorial!

@seancolsen seancolsen merged commit 2acf65c into civicrm:master Oct 18, 2017
@totten
Copy link
Member

totten commented Oct 20, 2017

I like how "CSS Example" shows the declaration (hook_civicrm_buildAsset) and then shows the command to preview it (cv ev ...). We should probably update "Usage: Simple asset" to do something similar.

On second thought, a more natural sequencing might be:

  1. Declare the asset (hook_civicrm_buildAsset)
  2. Preview the asset (cv ev ... )
  3. Use the asset at runtime

aydun added a commit to aydun/civicrm-dev-docs that referenced this pull request Nov 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants