Added a pre defined public_dir variable for the view class

Added a pre defined public_dir variable for the view class