View Source DevJoy.Scene.Asset (DevJoy v1.0.0)
Asset gives a way to display an image, play a sound or work with any other files. Data allows to configure how the asset should be used. For example the same image may be displayed as a background or inside an image preview popup. The sounds on the other side could be repeated. Other files or even directories could be used to show a gallery or open it in external application.
Example
defmodule MyApp.SceneWithAsset do
use DevJoy.Scene
part :asset do
asset "/path/to/asset", some: :data
end
end